"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ToolBar = ToolBar;

var _react = _interopRequireDefault(require("react"));

var _icons = require("@parallel-line/icons");

var _MarkButton = require("./MarkButton");

var _BlockButton = require("./BlockButton");

var _FontColorButton = require("./FontColorButton");

var _TextAlignButton = require("./TextAlignButton");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function ToolBar(props) {
  var className = props.className,
      disabled = props.disabled,
      buttonPrefixCls = props.buttonPrefixCls;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: className
  }, /*#__PURE__*/_react.default.createElement(_MarkButton.MarkButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls,
    format: "bold",
    title: "\u7C97\u4F53",
    icon: /*#__PURE__*/_react.default.createElement(_icons.BoldOutlined, null)
  }), /*#__PURE__*/_react.default.createElement(_MarkButton.MarkButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls,
    format: "italic",
    title: "\u659C\u4F53",
    icon: /*#__PURE__*/_react.default.createElement(_icons.ItalicOutlined, null)
  }), /*#__PURE__*/_react.default.createElement(_MarkButton.MarkButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls,
    format: "underline",
    title: "\u4E0B\u5212\u7EBF",
    icon: /*#__PURE__*/_react.default.createElement(_icons.UnderlineOutlined, null)
  }), /*#__PURE__*/_react.default.createElement(_FontColorButton.FontColorButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls
  }), /*#__PURE__*/_react.default.createElement(_BlockButton.BlockButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls,
    format: "heading-one",
    title: "\u6807\u98981",
    icon: /*#__PURE__*/_react.default.createElement(_icons.HeadingOneOutlined, null)
  }), /*#__PURE__*/_react.default.createElement(_BlockButton.BlockButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls,
    format: "heading-two",
    title: "\u6807\u98982",
    icon: /*#__PURE__*/_react.default.createElement(_icons.HeadingTwoOutlined, null)
  }), /*#__PURE__*/_react.default.createElement(_BlockButton.BlockButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls,
    format: "bulleted-list",
    title: "\u65E0\u5E8F\u5217\u8868",
    icon: /*#__PURE__*/_react.default.createElement(_icons.UnorderedListOutlined, null)
  }), /*#__PURE__*/_react.default.createElement(_BlockButton.BlockButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls,
    format: "numbered-list",
    title: "\u6709\u5E8F\u5217\u8868",
    icon: /*#__PURE__*/_react.default.createElement(_icons.OrderedListOutlined, null)
  }), /*#__PURE__*/_react.default.createElement(_TextAlignButton.TextAlignButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls,
    format: "left",
    title: "\u5DE6\u5BF9\u9F50",
    icon: /*#__PURE__*/_react.default.createElement(_icons.AlignLeftOutlined, null)
  }), /*#__PURE__*/_react.default.createElement(_TextAlignButton.TextAlignButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls,
    format: "center",
    title: "\u5C45\u4E2D\u5BF9\u9F50",
    icon: /*#__PURE__*/_react.default.createElement(_icons.AlignCenterOutlined, null)
  }), /*#__PURE__*/_react.default.createElement(_TextAlignButton.TextAlignButton, {
    disabled: disabled,
    prefixCls: buttonPrefixCls,
    format: "right",
    title: "\u53F3\u5BF9\u9F50",
    icon: /*#__PURE__*/_react.default.createElement(_icons.AlignRightOutlined, null)
  }));
}