UNPKG

@clubmed/trident-icons

Version:

Shared ClubMed Icons library

40 lines (39 loc) 1.02 kB
import { jsx as t } from "react/jsx-runtime"; import { c as h } from "../chunks/index.js"; import { Suspense as u } from "react"; import { useIconOrientation as x } from "../hooks/useIconOrientation.js"; import { omit as g } from "../utils/omit.js"; function v(n) { const { name: o, className: i, width: e = "16px", color: r = "inherit", style: a, element: s, aspectRatio: m, viewBox: c, ...l } = n, { intrinsicClassName: d, transform: p } = x(n), f = `text-${r}`; return /* @__PURE__ */ t( "span", { "aria-hidden": !0, ...g(l, ["group", "orientation", "type"]), className: h( "inline-block shrink-0 align-middle", d, f, i ), "data-name": "Icon", "data-testid": `icon-${o}`, style: { width: e, transform: p, aspectRatio: m, ...a }, children: /* @__PURE__ */ t(u, { children: /* @__PURE__ */ t(s, { viewBox: c }) }) } ); } export { v as SvgIcon }; //# sourceMappingURL=SvgIcon.js.map