UNPKG

@clubmed/trident-icons

Version:

Shared ClubMed Icons library

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