import a from "react";
import { useSvgLoader as i } from "./useSvgLoader.js";
const m = "https://cdn.rio.cloud/riosvg", f = (t) => {
  const { name: o, className: n = "", size: e = 150, baseUrl: s = m, colorMap: l } = t, { svgElement: r, error: c } = i(o, s, l);
  return c ? (console.error(`Icon "${o}" not found`), null) : r ? a.cloneElement(r, {
    width: e,
    height: e,
    className: n
  }) : null;
};
export {
  f as default
};
//# sourceMappingURL=SvgImage.js.map
