UNPKG

@stratakit/foundations

Version:

Foundational pieces of StrataKit

26 lines (25 loc) 640 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 };