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