UNPKG

@stratakit/foundations

Version:
31 lines (30 loc) 740 B
import { jsx } from "react/jsx-runtime"; import { Role } from "@ariakit/react/role"; import { Icon } from "@stratakit/foundations"; import { forwardRef } from "./~utils.js"; function createIconFromPath(d) { return forwardRef( (props, forwardedRef) => { return /* @__PURE__ */ jsx( Icon, { render: /* @__PURE__ */ jsx( Role.svg, { width: "16", height: "16", fill: "none", viewBox: "0 0 16 16", ...props, ref: forwardedRef, children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d }) } ) } ); } ); } export { createIconFromPath };