const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _pisell_materials = require("@pisell/materials");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/workSpaceList/components/Modal/index.tsx
const DeleteIcon = () => {
	return /* @__PURE__ */ react.default.createElement("div", { className: "delete-icon" }, /* @__PURE__ */ react.default.createElement(_pisell_materials.Icon, {
		type: "pisell2-a-Property3shanchu",
		className: "icon"
	}));
};
const OriginModal = (props) => {
	const { evenlyButton } = props;
	return /* @__PURE__ */ react.default.createElement(antd.Modal, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, { wrapClassName: (0, classnames.default)(props.wrapClassName, { ["pisell-modal-evenly-button"]: evenlyButton }) }));
};
const Modal = OriginModal;
const confirm = (props) => {
	return antd.Modal.confirm(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, {
		className: (0, classnames.default)("pisell-confim-modal", props.className),
		closable: true,
		okButtonProps: {
			type: "primary",
			danger: true
		},
		icon: /* @__PURE__ */ react.default.createElement(DeleteIcon, null)
	}));
};
Modal.confirm = confirm;
Modal.warning = antd.Modal.warning;
Modal.warn = antd.Modal.warn;
Modal.error = antd.Modal.error;
Modal.success = antd.Modal.success;
Modal.info = antd.Modal.info;
//#endregion
exports.default = Modal;
