import { jsx as e } from "react/jsx-runtime";
import * as a from "lucide-react";
import p from "./custom-icon/types/CustomIconName.js";
import f from "./custom-icon/CustomIcon.js";
import { iconAnimations as m } from "./types/IconAnimation.js";
import { c as i } from "../../index-BtlgVD4m.js";
const u = (o) => `${o}Icon`, I = (o) => !!o && "displayName" in o && typeof o.displayName == "string", N = ({ ref: o, name: r, animation: n, size: t = 20, ...c }) => {
  if (r in p)
    return /* @__PURE__ */ e(f, { name: r, size: t, className: i(n && m[n]), ...c });
  const l = u(r), s = a[l];
  return I(s) ? /* @__PURE__ */ e(
    s,
    {
      ref: o,
      role: "svg",
      size: t,
      strokeWidth: 2,
      color: "currentColor",
      className: i(n && m[n]),
      ...c
    }
  ) : (console.warn(`Invalid icon name: ${r}`), null);
};
N.displayName = "Icon";
export {
  N as default
};
//# sourceMappingURL=Icon.js.map
