UNPKG

@clubmed/trident-icons

Version:

Shared ClubMed Icons library

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