"use strict";

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

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

var _BannerConfigGroup = _interopRequireDefault(require("./BannerConfigGroup"));

var _BannerConfigSetting = _interopRequireDefault(require("./BannerConfigSetting"));

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

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

function BannerConfig(props) {
  var data = props.data;
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
    divider: "bold",
    headerSize: "large",
    source: [{
      key: 'bannerGroup',
      name: 'Group',
      value: /*#__PURE__*/_react["default"].createElement(_BannerConfigGroup["default"], {
        source: data.groupSource
      })
    }, {
      key: 'bannerSetting',
      name: 'Setting',
      value: /*#__PURE__*/_react["default"].createElement(_BannerConfigSetting["default"], {
        setting: data.setting
      })
    }],
    type: "triangle"
  }));
}