"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

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 _propTypes = _interopRequireDefault(require("prop-types"));

var React = _interopRequireWildcard(require("react"));

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _interpolation = require("../../Tools/interpolation");

var Wrapper =
/*#__PURE__*/
_styledComponents.default.div.withConfig({
  componentId: "sc-138n57e-0"
})(["\n  position: relative;\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  align-items: center;\n  width: 100%;\n  height: ", ";\n  padding: 0 2rem;\n  box-sizing: border-box;\n\n  @media (min-width: ", ") {\n    padding: 0 3rem;\n  }\n"], (0, _interpolation.prop)('height'), (0, _interpolation.screenSize)('sm'));

var Navbar = function Navbar(_ref) {
  var children = _ref.children,
      height = _ref.height,
      rest = (0, _objectWithoutProperties2.default)(_ref, ["children", "height"]);
  return React.createElement(Wrapper, (0, _extends2.default)({
    height: height
  }, rest), children);
};

Navbar.propTypes = process.env.NODE_ENV !== "production" ? {
  children: _propTypes.default.node,
  height: _propTypes.default.string.isRequired
} : {};
Navbar.defaultProps = {
  height: '60px'
};
var _default = Navbar;
exports.default = _default;