"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.div.withConfig({
  componentId: "gqyw4u-0"
})(["\n  position: absolute;\n  top: 0;\n  right: 0;\n  display: ", ";\n  flex-direction: column-reverse;\n  justify-content: flex-start;\n  align-items: flex-start;\n  width: 100%;\n  padding: 4.5rem 1.5rem 1.5rem 1.5rem;\n  box-sizing: border-box;\n  background-color: ", ";\n  transform: translate3d(0, 0, 0);\n  z-index: ", ";\n\n  @media (min-width: ", ") {\n    position: relative;\n    top: initial;\n    display: flex;\n    flex-direction: row;\n    justify-content: space-between;\n    align-items: center;\n    padding: 1rem 0;\n    background-color: transparent;\n  }\n"], function (props) {
  return props.toggled === true ? 'flex' : 'none';
}, (0, _interpolation.theme)('navbarMenuBackgroundColor'), (0, _interpolation.theme)('navbarMenuZIndex'), (0, _interpolation.screenSize)('sm'));

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

NavbarMenu.propTypes = process.env.NODE_ENV !== "production" ? {
  children: _propTypes.default.node,
  toggled: _propTypes.default.bool
} : {};
NavbarMenu.defaultProps = {
  toggled: false
};
var _default = NavbarMenu;
exports.default = _default;