"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 _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.ul.withConfig({
  componentId: "o2d61x-0"
})(["\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  width: 100%;\n  margin: 0;\n  padding: 0;\n  box-sizing: border-box;\n  list-style-type: none;\n\n  @media (max-width: ", ") {\n    & > li:first-child {\n      border-top: none;\n    }\n  }\n\n  @media (min-width: ", ") {\n    display: ", ";\n    flex-direction: row;\n    align-items: center;\n    height: auto;\n    width: ", ";\n  }\n"], (0, _interpolation.screenSize)('sm'), (0, _interpolation.screenSize)('sm'), function (props) {
  return props.toggled === true ? 'flex' : 'none';
}, (0, _interpolation.prop)('width'));

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

NavbarNav.propTypes = process.env.NODE_ENV !== "production" ? {
  children: _propTypes.default.node,
  toggled: _propTypes.default.bool,
  width: _propTypes.default.string
} : {};
NavbarNav.defaultProps = {
  toggled: true,
  width: '100%'
};
var _default = NavbarNav;
exports.default = _default;