import { Button } from 'antd';
import React from 'react';
import Iconfont from "../../../../iconfont";
import { locales } from '@pisell/utils';
import "./index.less";
var prefix = 'pisell-lowcode-';
var EditButton = function EditButton(_ref) {
  var onEdit = _ref.onEdit,
    disabledEditClick = _ref.disabledEditClick;
  return /*#__PURE__*/React.createElement(Button, {
    className: "".concat(prefix, "product-edit-button"),
    onClick: function onClick(e) {
      if (disabledEditClick) return;
      e.stopPropagation();
      onEdit === null || onEdit === void 0 || onEdit();
    },
    type: "text",
    icon: /*#__PURE__*/React.createElement(Iconfont, {
      type: "pisell2-edit-05",
      className: "".concat(prefix, "product-edit-button-icon")
    })
  }, locales.getText('pisell2.product.card.edit'));
};
export default EditButton;