'use strict';

exports.__esModule = true;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

require('./style.css');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var HeaderSlim = function HeaderSlim(props) {
  return _react2.default.createElement(
    'div',
    { className: 'ma__header_slim' },
    _react2.default.createElement('div', { className: 'ma__header_slim__banner' }),
    _react2.default.createElement(
      'header',
      { className: 'ma__header_slim__header', id: 'header' },
      _react2.default.createElement(
        'div',
        { className: 'ma__header_slim__container ma__container' },
        _react2.default.createElement(
          'div',
          { className: 'ma__header_slim__logo' },
          props.siteLogo
        )
      )
    )
  );
};

HeaderSlim.propTypes = process.env.NODE_ENV !== "production" ? {
  /** The domain you want to send users to from the site logo icon */
  // eslint-disable-next-line consistent-return
  siteLogo: function siteLogo(props, propName, componentName) {
    var component = props[propName];
    var isValid = function isValid(comp) {
      if (typeof comp.type === 'string') {
        return comp.type === 'SiteLogo';
      }
      return comp.type.name && comp.type.name === 'SiteLogo';
    };
    if (!component || component && !isValid(component)) {
      return new Error('Invalid prop ' + propName + ' supplied to ' + componentName + '. Got: ' + component.type.name + '. Validation failed.');
    }
  }
} : {};

exports.default = HeaderSlim;
module.exports = exports['default'];