import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import PropTypes from 'prop-types';
import * as React from 'react';
import styled from 'styled-components';
import { screenSize, theme } from '../../Tools/interpolation';
var Wrapper =
/*#__PURE__*/
styled.li.withConfig({
  componentId: "sc-1tqimls-0"
})(["\n  position: relative;\n  width: 100%;\n  padding: 0.5rem 0;\n  border-top: 0.5px solid ", ";\n  box-sizing: border-box;\n\n  @media (min-width: ", ") {\n    flex-grow: 1;\n    flex-shrink: 1;\n    flex-basis: auto;\n    width: auto;\n    padding: 0.75rem 1rem;\n    border-top: none;\n\n    & > :last-child {\n      display: none;\n    }\n\n    &:hover {\n      & > :last-child {\n        display: block;\n      }\n    }\n  }\n"], theme('navbarDropdownContentBorderColor'), screenSize('sm'));

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

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

NavbarNavItem.propTypes = process.env.NODE_ENV !== "production" ? {
  children: PropTypes.node
} : {};
export default NavbarNavItem;