"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");

//  strict
var Wrapper =
/*#__PURE__*/
_styledComponents.default.li.withConfig({
  componentId: "sc-61dg87-0"
})(["\n  position: relative;\n  width: 100%;\n  padding: 0.5rem 0;\n  box-sizing: border-box;\n  border-top: 0.5px solid ", ";\n\n  @media (min-width: ", ") {\n    flex-grow: 1;\n    flex-shrink: 1;\n    flex-basis: auto;\n    width: auto;\n    margin-right: 1rem;\n    padding: 1rem;\n    border-top: none;\n  }\n"], (0, _interpolation.theme)('navbarDropdownContentBorderColor'), (0, _interpolation.screenSize)('sm'));

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

NavbarNavItem.propTypes = process.env.NODE_ENV !== "production" ? {
  children: _propTypes.default.node
} : {};
var _default = NavbarNavItem;
exports.default = _default;