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); }
import React from 'react';
import PropTypes from 'prop-types';
import Title from '../../atom/title';
import QuickAccessCardGroup from '../../molecule/quick-access-cards-group';
import CoorpmanagerBaseBanner from '../../molecule/coorpmanager-base-banner';
import style from './style.css';
const Dashboard = props => {
  const {
    header,
    quickAccessCards,
    banner
  } = props;
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Title, _extends({}, header, {
    type: 'page'
  }))), banner ? /*#__PURE__*/React.createElement(CoorpmanagerBaseBanner, banner) : null, /*#__PURE__*/React.createElement("div", {
    className: style.sectionWrapper
  }, /*#__PURE__*/React.createElement(Title, {
    title: quickAccessCards.title,
    type: 'form-group'
  }), /*#__PURE__*/React.createElement("div", {
    className: style.cardsWrapper
  }, /*#__PURE__*/React.createElement(QuickAccessCardGroup, quickAccessCards.cards))));
};
Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
  header: PropTypes.shape({
    title: PropTypes.string,
    subtitle: PropTypes.string
  }),
  quickAccessCards: PropTypes.shape({
    title: PropTypes.string,
    cards: PropTypes.shape(QuickAccessCardGroup.propTypes)
  }),
  banner: PropTypes.shape(CoorpmanagerBaseBanner.propTypes)
} : {};
export default Dashboard;
//# sourceMappingURL=index.js.map