adwaita-web
Version:
A GTK inspired toolkit designed to build awesome web apps
51 lines (50 loc) • 1.36 kB
JavaScript
import * as React from "react";
import { memo } from "react";
import cx from "clsx";
const SvgObjectSelectSymbolic = (passedProps, ...restArgs) => {
const {
colored,
containerProps = {},
...rest
} = passedProps;
if (colored && typeof colored === "string") {
if (!containerProps.style) {
containerProps.style = {};
}
Object.assign(containerProps.style, {
"--custom-icon-color": colored
});
}
const render = (props) => /* @__PURE__ */ React.createElement("span", {
...containerProps,
className: cx("Icon", containerProps.className, {
colored
})
}, /* @__PURE__ */ React.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 16 16",
...props
}, /* @__PURE__ */ React.createElement("path", {
d: "M13.5 5l-1-1-5 5L5 6.5l-2 2L7.5 13l7-7z",
style: {
lineHeight: "normal",
InkscapeFontSpecification: "Sans",
textIndent: 0,
textAlign: "start",
textDecorationLine: "none",
textTransform: "none",
marker: "none"
},
color: "#000",
fontWeight: 400,
fontFamily: "Sans",
overflow: "visible",
fill: "#2e3436"
})));
return render(rest, ...restArgs);
};
const Memo = memo(SvgObjectSelectSymbolic);
var object_select_symbolic_default = Memo;
export {
object_select_symbolic_default as default
};