UNPKG

@crossed/unicons

Version:

unicons

33 lines (32 loc) 665 B
import { jsx, jsxs } from "react/jsx-runtime"; import { useTheme } from "@crossed/styled"; const X = ({ Svg, Path, color, size = 24 }) => { const theme = useTheme(); const stroke = color ?? theme.font.color; return /* @__PURE__ */ jsxs( Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", stroke, children: [ /* @__PURE__ */ jsx(Path, { d: "M18 6 6 18", stroke }), /* @__PURE__ */ jsx(Path, { d: "m6 6 12 12", stroke }) ] } ); }; export { X }; //# sourceMappingURL=X.js.map