// Shared Lucide icon helper for the website UI kit. Exposes window.Ic.
function Ic({ name, size = 20, stroke = 1.75, color, style }) {
  const ref = React.useRef(null);
  React.useEffect(() => {
    if (ref.current && window.lucide) {
      ref.current.innerHTML = "";
      const el = document.createElement("i");
      el.setAttribute("data-lucide", name);
      ref.current.appendChild(el);
      window.lucide.createIcons({ attrs: { width: size, height: size, "stroke-width": stroke } });
    }
  }, [name, size, stroke]);
  return <span ref={ref} style={{ display: "inline-flex", color: color || "currentColor", ...style }} />;
}
Object.assign(window, { Ic });