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.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';
}, theme('navbarMenuBackgroundColor'), theme('navbarMenuZIndex'), screenSize('sm'));

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

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

NavbarMenu.propTypes = process.env.NODE_ENV !== "production" ? {
  children: PropTypes.node,
  toggled: PropTypes.bool
} : {};
NavbarMenu.defaultProps = {
  toggled: false
};
export default NavbarMenu;