import { FormatPainterOutlined } from "@ant-design/icons";
import classnames from "classnames";
import React from "react";
import { ToolBarItem } from "./ToolBarItem";
export var FormatButton = /*#__PURE__*/ React.memo(function(param) {
    var baseClassName = param.baseClassName, hashId = param.hashId, i18n = param.i18n, onFormat = param.onFormat;
    var _i18n_locale;
    return /*#__PURE__*/ React.createElement(ToolBarItem, {
        title: ((_i18n_locale = i18n.locale) === null || _i18n_locale === void 0 ? void 0 : _i18n_locale.format) || '格式化',
        icon: /*#__PURE__*/ React.createElement(FormatPainterOutlined, null),
        onClick: onFormat,
        className: classnames("".concat(baseClassName, "-item"), hashId),
        style: {
            fontSize: '0.9em'
        }
    });
});
FormatButton.displayName = 'FormatButton';
