const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../../iconfont/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
require("./index.less");
//#region src/components/productCard/components/Header/DeleteButton/index.tsx
const prefix = "pisell-lowcode-";
const DeleteButton = ({ onDelete, type }) => {
	return /* @__PURE__ */ react.default.createElement("div", {
		className: `${prefix}product-delete`,
		onClick: (e) => {
			e.stopPropagation();
			onDelete();
		}
	}, /* @__PURE__ */ react.default.createElement(antd.Button, {
		type: "text",
		icon: /* @__PURE__ */ react.default.createElement(require_index.default, { type: type || "pisell2-trash-01" })
	}));
};
//#endregion
exports.default = DeleteButton;
