"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = BoldText;
const tslib_1 = require("tslib");
const list_marker_format_1 = require("./list-marker-format");
const lexical_1 = require("lexical");
const react_1 = tslib_1.__importDefault(require("react"));
const types_1 = require("../../../../types");
function BoldText({ editor, isActive }) {
    return (react_1.default.createElement("div", { className: 'flex items-center gap-x-2' },
        react_1.default.createElement("button", { type: 'button', "data-color-button": 'true', className: (0, types_1.classNames)('p-1 rounded-md duration-200 cursor-pointer', isActive ? 'bg-gray-200' : 'hover:bg-gray-200'), onClick: () => {
                (0, list_marker_format_1.syncListMarkerFormatStyle)(editor, { 'font-weight': isActive ? null : 'bold' });
                editor.dispatchCommand(lexical_1.FORMAT_TEXT_COMMAND, 'bold');
            } },
            react_1.default.createElement("span", null,
                react_1.default.createElement("svg", { width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                    react_1.default.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M7 3C6.17157 3 5.5 3.67157 5.5 4.5V14.9615C5.5 15.8112 6.18879 16.5 7.03846 16.5H11.5C13.7091 16.5 15.5 14.7091 15.5 12.5C15.5 11.1539 14.8351 9.96308 13.8157 9.23811C14.2477 8.59938 14.5 7.82915 14.5 7C14.5 4.79086 12.7091 3 10.5 3H7ZM10.5 8.5C11.3284 8.5 12 7.82843 12 7C12 6.17157 11.3284 5.5 10.5 5.5H8V8.5H10.5ZM8 11V14H11.5C12.3284 14 13 13.3284 13 12.5C13 11.6716 12.3284 11 11.5 11H8Z', fill: '#4A4A4A' }))))));
}
//# sourceMappingURL=bold-text.js.map