"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _proptypes = require("../../util/proptypes");
var _picture = _interopRequireDefault(require("../../atom/picture"));
var _menuList = _interopRequireDefault(require("../../molecule/menu-list"));
var _style = _interopRequireDefault(require("./style.css"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const Header = props => {
  const {
    menuItems,
    src,
    href
  } = props;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: _style.default.static
  }, /*#__PURE__*/_react.default.createElement("div", {
    className: _style.default.logo
  }, /*#__PURE__*/_react.default.createElement("a", {
    href: href
  }, /*#__PURE__*/_react.default.createElement(_picture.default, {
    src: src
  }))), /*#__PURE__*/_react.default.createElement("div", {
    className: _style.default.navigation
  }, /*#__PURE__*/_react.default.createElement(_menuList.default, {
    menuItems: menuItems
  })));
};
Header.propTypes = process.env.NODE_ENV !== "production" ? {
  href: _propTypes.default.string,
  menuItems: _propTypes.default.arrayOf(_propTypes.default.shape({
    title: _propTypes.default.string
  })),
  src: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.objectOf(_proptypes.SrcPropType).isRequired])
} : {};
var _default = exports.default = Header;
//# sourceMappingURL=index.js.map