"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

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

var _box = _interopRequireDefault(require("../box"));

var _container = _interopRequireDefault(require("../container"));

var _typography = require("../typography");

var _excluded = ["children", "title"];

var OverviewPageHeader = function OverviewPageHeader(_ref) {
  var children = _ref.children,
      title = _ref.title,
      others = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  return /*#__PURE__*/_react.default.createElement(_container.default, (0, _extends2.default)({}, others, {
    display: "flex",
    marginBottom: 5,
    paddingTop: 7,
    justifyContent: "space-between"
  }), /*#__PURE__*/_react.default.createElement(_typography.Heading1, {
    color: "teal"
  }, title), children && /*#__PURE__*/_react.default.createElement(_box.default, null, children));
};

var _default = OverviewPageHeader;
exports.default = _default;