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 _pisell_utils = require("@pisell/utils");
let antd = require("antd");
require("./index.less");
//#region src/components/productCard/components/Header/EditButton/index.tsx
const prefix = "pisell-lowcode-";
const EditButton = ({ onEdit }) => {
	return /* @__PURE__ */ react.default.createElement(antd.Button, {
		className: `${prefix}product-edit-button`,
		onClick: (e) => {
			e.stopPropagation();
			onEdit === null || onEdit === void 0 || onEdit();
		},
		type: "text",
		icon: /* @__PURE__ */ react.default.createElement(require_index.default, {
			type: "pisell2-edit-05",
			className: `${prefix}product-edit-button-icon`
		})
	}, _pisell_utils.locales.getText("pisell2.product.card.edit"));
};
//#endregion
exports.default = EditButton;
