import { createElement as c } from "react";
import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
import { isMobile as e } from "../../node_modules/react-device-detect/dist/lib.mjs";
import l from "../BitzButton/index.mjs";
import a from "../../node_modules/antd/es/space/index.mjs";
import t from "../../node_modules/antd/es/modal/index.mjs";
import f from "../../node_modules/antd/es/popconfirm/index.mjs";
const p = {
  data: []
}, b = ({ ...i }) => {
  const s = { ...p, ...i };
  return e ? o.jsx(a, { direction: "vertical", style: { width: "100%" }, children: s.data.map((r, n) => (r.block = !0, r.size = r.size || "middle", r.shape = r.shape || "round", o.jsx(l, { onClick: () => {
    r.confirm && t.confirm(r.confirm);
  }, ...r, children: r.label }, n))) }) : o.jsx(a, { direction: "horizontal", children: s.data.map((r, n) => r != null && r.confirm ? c(
    f,
    { ...r.confirm, key: n },
    o.jsx(l, { size: r.size || "small", ...r, children: r.label })
  ) : o.jsx(l, { size: r.size || "small", ...r, children: r.label }, n)) });
};
export {
  b as default
};
