import IconFont from "../../../../iconfont/index.js";
import React from "react";
import { locales } from "@pisell/utils";
import { Button } from "antd";
import "./index.less";
//#region src/components/productCard/components/Header/EditButton/index.tsx
const prefix = "pisell-lowcode-";
const EditButton = ({ onEdit }) => {
	return /* @__PURE__ */ React.createElement(Button, {
		className: `${prefix}product-edit-button`,
		onClick: (e) => {
			e.stopPropagation();
			onEdit === null || onEdit === void 0 || onEdit();
		},
		type: "text",
		icon: /* @__PURE__ */ React.createElement(IconFont, {
			type: "pisell2-edit-05",
			className: `${prefix}product-edit-button-icon`
		})
	}, locales.getText("pisell2.product.card.edit"));
};
//#endregion
export { EditButton as default };
