"use strict";

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

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

var _styleModule = _interopRequireDefault(require("./style.module.scss"));

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

var _propTypes = _interopRequireDefault(require("prop-types"));

var _components = require("../../components");

// Components
var DashHeader = function DashHeader(props) {
  var icon = props.icon,
      title = props.title,
      children = props.children;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: _styleModule["default"].DashHeader
  }, /*#__PURE__*/_react["default"].createElement(_components.Flex, {
    className: _styleModule["default"]['DashHeader-Inner']
  }, /*#__PURE__*/_react["default"].createElement(_components.Title, {
    className: _styleModule["default"]['DashHeader-Title']
  }, /*#__PURE__*/_react["default"].createElement("i", {
    className: [icon, _styleModule["default"]['DashHeader-Title-Icon']].join(' ')
  }), title), /*#__PURE__*/_react["default"].createElement("div", {
    className: _styleModule["default"]['DashHeader-Children']
  }, children)));
};

DashHeader.propTypes = {
  children: _propTypes["default"].any,
  icon: _propTypes["default"].string,
  title: _propTypes["default"].string
};
var _default = DashHeader;
exports["default"] = _default;