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 { screenSize, theme } from '../../Tools/interpolation';
var Wrapper =
/*#__PURE__*/
styled.div.withConfig({
  componentId: "sc-94531c-0"
})(["\n  width: 100%;\n\n  @media (min-width: ", ") {\n    position: absolute;\n    width: auto;\n    margin: 0.25rem 0;\n    background-color: transparent;\n  }\n"], screenSize('sm'));
var Container =
/*#__PURE__*/
styled.div.withConfig({
  componentId: "sc-94531c-1"
})(["\n  position: relative;\n  display: flex;\n  flex-direction: column;\n\n  & > :last-child {\n    margin-bottom: 0 !important;\n  }\n\n  @media (max-width: ", ") {\n    padding: 1.1rem 0;\n  }\n\n  @media (min-width: ", ") {\n    margin-top: 15px;\n    padding: 1.5rem;\n    border-radius: 0.25rem;\n    box-sizing: border-box;\n    background-color: ", ";\n    box-shadow: 0 10px 60px -10px ", ",\n      0 8px 16px ", ";\n\n    &::after,\n    &::before {\n      bottom: 100%;\n      left: 10%;\n      border: solid transparent;\n      content: ' ';\n      height: 0;\n      width: 0;\n      position: absolute;\n      pointer-events: none;\n    }\n\n    &::after {\n      border-color: transparent;\n      border-bottom-color: ", ";\n      border-width: 10px;\n      margin-left: -10px;\n    }\n\n    &::before {\n      border-color: transparent;\n      border-bottom-color: ", ";\n      border-width: 12px;\n      margin-left: -12px;\n    }\n  }\n"], screenSize('sm'), screenSize('sm'), theme('navbarDropdownContentBackgroundColor'), theme('navbarDropdownContentShadowColor'), theme('navbarDropdownContentShadowColor2'), theme('navbarDropdownContentBackgroundColor'), theme('navbarDropdownContentBackgroundColor'));

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

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

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