"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = DividerConfig;

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

var _DividerContentSetting = _interopRequireDefault(require("./DividerContentSetting"));

var _DividerSpacingSetting = _interopRequireDefault(require("./DividerSpacingSetting"));

var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));

var _layout = require("../../../../constants/layout");

var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));

var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));

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

function DividerConfig(props) {
  var data = props.data;
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
    divider: "bold",
    headerSize: "large",
    source: [{
      key: 'content',
      name: 'Content',
      value: /*#__PURE__*/_react["default"].createElement(_DividerContentSetting["default"], {
        content: data.content
      })
    }, {
      key: 'spacing',
      name: 'Spacing',
      value: /*#__PURE__*/_react["default"].createElement(_DividerSpacingSetting["default"], {
        spacing: data.spacing
      })
    }, {
      key: 'customize',
      name: 'Customize',
      value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
        data: data.customize,
        layoutSource: _layout.dividerLayout
      })
    }, {
      key: 'background',
      name: 'Background',
      value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
        data: data.background
      })
    }],
    type: "triangle"
  }));
}