import { j as n } from "../../node_modules/react/jsx-runtime.mjs";
import "../../node_modules/react-dom/client.mjs";
import { __exports as r } from "../../_virtual/client.mjs";
import l from "../../node_modules/antd/es/image/index.mjs";
import c from "../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
const s = (e) => {
  const t = document.createElement("div"), o = r.createRoot(t);
  let i = {
    visible: !0,
    closeIcon: n.jsx(c, { onClick: () => {
      var m;
      (m = e.onClose) == null || m.call(e), o.unmount(), t.remove();
    } })
  };
  e.items.length <= 1 && (i.countRender = () => null), o.render(n.jsx(l.PreviewGroup, { preview: i, items: e.items })), document.body.appendChild(t);
}, x = s;
export {
  x as default
};
