import { jsx as s } from "react/jsx-runtime";
import e from "./components/SVGStringComponent.js";
import { c as f } from "../../../index-BtlgVD4m.js";
import u from "./utils/getIconComponent.js";
import "./types/CustomIconName.js";
const a = ({
  ref: t,
  name: o,
  size: r = 24,
  className: p,
  color: i = "currentColor",
  children: m,
  ...l
}) => {
  const n = u(o);
  if (!n)
    return console.warn(`Icon "${o}" not found`), null;
  const c = {
    width: r,
    height: r,
    className: f("inline-block", p)
  };
  return typeof n == "string" ? /* @__PURE__ */ s(e, { ref: t, svgString: n, name: o, commonProps: c, fill: i, ...l, children: m }) : /* @__PURE__ */ s(n, { ref: t, ...c, fill: i, "aria-label": o, role: "img", ...l, children: m });
};
a.displayName = "CustomIcon";
export {
  a as default
};
//# sourceMappingURL=CustomIcon.js.map
