import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
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.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"], screenSize('sm'), screenSize('sm'), function (props) {
  return props.toggled === true ? 'flex' : 'none';
}, prop('width'));

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

  return React.createElement(Wrapper, rest, children);
};

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