"use client";
import { jsx } from "react/jsx-runtime";
import * as React from "react";
import { Spinner } from "@open-mercato/ui/primitives/spinner";
function DealsMapCanvas(props) {
  const [Impl, setImpl] = React.useState(null);
  React.useEffect(() => {
    let cancelled = false;
    void import("./DealsMapCanvasImpl.js").then((mod) => {
      if (!cancelled) setImpl(() => mod.default);
    });
    return () => {
      cancelled = true;
    };
  }, []);
  if (!Impl) {
    return /* @__PURE__ */ jsx("div", { className: `flex items-center justify-center bg-muted/30 ${props.className ?? ""}`.trim(), children: /* @__PURE__ */ jsx(Spinner, { className: "size-6 text-muted-foreground" }) });
  }
  return /* @__PURE__ */ jsx(Impl, { ...props });
}
var DealsMapCanvas_default = DealsMapCanvas;
export {
  DealsMapCanvas,
  DealsMapCanvas_default as default
};
//# sourceMappingURL=DealsMapCanvas.js.map
