import { LinkOutlined } from "@ant-design/icons";
import classNames from "clsx";
import React from "react";
import { ToolBarItem } from "./ToolBarItem";
export var LinkButton = /*#__PURE__*/ React.memo(function(param) {
    var baseClassName = param.baseClassName, hashId = param.hashId, i18n = param.i18n, onInsertLink = param.onInsertLink, isLinkActive = param.isLinkActive;
    var _i18n_locale;
    return /*#__PURE__*/ React.createElement(ToolBarItem, {
        title: (i18n === null || i18n === void 0 ? void 0 : (_i18n_locale = i18n.locale) === null || _i18n_locale === void 0 ? void 0 : _i18n_locale.insertLink) || '插入链接',
        icon: /*#__PURE__*/ React.createElement(LinkOutlined, null),
        onClick: onInsertLink,
        className: classNames("".concat(baseClassName, "-item"), hashId),
        style: {
            color: isLinkActive ? '#1677ff' : undefined
        }
    });
});
LinkButton.displayName = 'LinkButton';
