UNPKG

@payfit/unity-icons

Version:

14 lines (13 loc) • 427 B
import { useIconsContext as e } from "../../icons-provider/UnityIconsProvider.js"; import { jsx as t } from "react/jsx-runtime"; //#region src/components/icon/parts/IconSprite.tsx function n({ src: n, ...r }) { let { isLoaded: i } = e(); return i ? /* @__PURE__ */ t("svg", { ...r, children: /* @__PURE__ */ t("use", { href: `#${n}` }) }) : null; } n.displayName = "IconSprite"; //#endregion export { n as IconSprite };