import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
import { isMobile as r } from "../../node_modules/react-device-detect/dist/lib.mjs";
import x from "../../node_modules/antd/es/drawer/index.mjs";
import o from "../../node_modules/antd/es/button/button.mjs";
const k = ({ title: i = "", open: s = !1, onClose: t = () => {
}, onSubmit: l = () => {
}, children: m, pcWidth: a = 800, mobileHeight: p = 600, showFooter: n = !0, showSubmitBtn: c = !0, showCancelBtn: f = !0, submitBtnText: h = "保存", cancelBtnText: d = "取消", ...u }) => e.jsx(x, { ...u, title: i, placement: r ? "bottom" : "right", height: r ? p : "", width: r ? "" : a, closable: !1, onClose: t, open: s, footer: n ? e.jsxs("div", { className: r ? "mobileFooter" : "pcFooter", children: [c && e.jsx(o, { type: "primary", onClick: l, children: h }), f && e.jsx(o, { onClick: t, children: d })] }) : "", children: m });
export {
  k as default
};
