import { ExpandAlt, FoldAlt } from "@sofa-design/icons";
import React from "react";
import { ActionIconBox } from "../../Components/ActionIconBox";
import { useLocale } from "../../I18n";
var Enlargement = function Enlargement(param) {
    var _param_isEnlarged = param.isEnlarged, isEnlarged = _param_isEnlarged === void 0 ? false : _param_isEnlarged, onEnlargeClick = param.onEnlargeClick;
    var _ref, _ref1;
    var locale = useLocale();
    var title = isEnlarged ? (_ref = locale === null || locale === void 0 ? void 0 : locale.shrink) !== null && _ref !== void 0 ? _ref : '缩小' : (_ref1 = locale === null || locale === void 0 ? void 0 : locale.enlarge) !== null && _ref1 !== void 0 ? _ref1 : '放大';
    return /*#__PURE__*/ React.createElement(ActionIconBox, {
        title: title,
        onClick: onEnlargeClick
    }, isEnlarged ? /*#__PURE__*/ React.createElement(FoldAlt, null) : /*#__PURE__*/ React.createElement(ExpandAlt, null));
};
export default Enlargement;
