import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
//  strict
import PropTypes from 'prop-types';
import * as React from 'react';
import styled from 'styled-components';
import { prop, screenSize } from '../../Tools/interpolation';
var Wrapper =
/*#__PURE__*/
styled.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"], prop('height'), screenSize('sm'));

var Navbar = function Navbar(_ref) {
  var children = _ref.children,
      height = _ref.height,
      rest = _objectWithoutProperties(_ref, ["children", "height"]);

  return React.createElement(Wrapper, _extends({
    height: height
  }, rest), children);
};

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