import { jsx as a } from "react/jsx-runtime";
import n from "react";
import { convertAttributes as s } from "./svgConverter.js";
const i = ({ node: t, colorMap: e }) => {
  const r = s(t, e);
  return n.createElement(
    t.tagName.toLowerCase(),
    {
      ...r,
      key: r.id || Math.random()
    },
    Array.from(t.childNodes).map(
      (o, m) => o.nodeType === 1 ? /* @__PURE__ */ a(i, { node: o, colorMap: e }, m) : null
    )
  );
};
export {
  i as default
};
//# sourceMappingURL=SvgElement.js.map
