@anoki/fse-ui
Version:
FSE UI components library
42 lines (41 loc) • 1.21 kB
JavaScript
import { j as r } from "./index.es237.js";
import { clsx as n } from "./index.es239.js";
import { createColorClasses as d } from "./index.es310.js";
const u = ({
width: e = 24,
height: o = 24,
className: t,
color: a = "primary",
filled: i,
decorative: l = !1,
ariaLabel: m = "Favorite",
onClick: s
}) => {
const p = d({ color: a });
return /* @__PURE__ */ r.jsx(
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
width: e,
height: o,
fill: "currentColor",
viewBox: "0 0 24 24",
className: n(t, p, s ? "cursor-pointer" : ""),
"aria-hidden": l,
"aria-label": l ? void 0 : m,
onClick: s,
children: i ? /* @__PURE__ */ r.jsx("path", { d: "M12 1.7l2.5 7.5h7.9L16 13.9l2.4 7.6-6.4-4.7-6.4 4.7L8 13.9 1.6 9.2h7.9z" }) : /* @__PURE__ */ r.jsx(
"path",
{
fillRule: "evenodd",
d: "M9.5 9.2 12 1.7l2.5 7.5h7.9L16 13.9l2.4 7.6-6.4-4.7-6.4 4.7L8 13.9 1.6 9.2zm4 .3L12 4.9l-1.5 4.6-.2.7H4.6l4 2.9.6.4-.2.7-1.5 4.7 3.9-2.9.6-.4.6.4 3.9 2.9-1.5-4.7-.2-.7.6-.4 4-2.9h-5.7z",
clipRule: "evenodd"
}
)
}
);
};
export {
u as Favourite
};
//# sourceMappingURL=index.es198.js.map