"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _title = _interopRequireDefault(require("../../atom/title"));
var _quickAccessCardsGroup = _interopRequireDefault(require("../../molecule/quick-access-cards-group"));
var _coorpmanagerBaseBanner = _interopRequireDefault(require("../../molecule/coorpmanager-base-banner"));
var _style = _interopRequireDefault(require("./style.css"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
const Dashboard = props => {
  const {
    header,
    quickAccessCards,
    banner
  } = props;
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_title.default, _extends({}, header, {
    type: 'page'
  }))), banner ? /*#__PURE__*/_react.default.createElement(_coorpmanagerBaseBanner.default, banner) : null, /*#__PURE__*/_react.default.createElement("div", {
    className: _style.default.sectionWrapper
  }, /*#__PURE__*/_react.default.createElement(_title.default, {
    title: quickAccessCards.title,
    type: 'form-group'
  }), /*#__PURE__*/_react.default.createElement("div", {
    className: _style.default.cardsWrapper
  }, /*#__PURE__*/_react.default.createElement(_quickAccessCardsGroup.default, quickAccessCards.cards))));
};
Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
  header: _propTypes.default.shape({
    title: _propTypes.default.string,
    subtitle: _propTypes.default.string
  }),
  quickAccessCards: _propTypes.default.shape({
    title: _propTypes.default.string,
    cards: _propTypes.default.shape(_quickAccessCardsGroup.default.propTypes)
  }),
  banner: _propTypes.default.shape(_coorpmanagerBaseBanner.default.propTypes)
} : {};
var _default = exports.default = Dashboard;
//# sourceMappingURL=index.js.map