"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

exports.__esModule = true;
exports.DesktopMenu = void 0;

var _taggedTemplateLiteralLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteralLoose"));

var _react = _interopRequireDefault(require("react"));

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _MenuItem = require("./MenuItem");

var _templateObject, _templateObject2;

var DesktopMenu = function DesktopMenu(_ref) {
  var defaultFeaturedBrandsImage = _ref.defaultFeaturedBrandsImage,
      data = _ref.data;
  return /*#__PURE__*/_react["default"].createElement(Container, null, /*#__PURE__*/_react["default"].createElement(Inner, null, data == null ? void 0 : data.map(function (element) {
    return /*#__PURE__*/_react["default"].createElement(_MenuItem.MenuItem, {
      defaultFeaturedBrandsImage: defaultFeaturedBrandsImage,
      key: element._id,
      data: element
    });
  })));
};

exports.DesktopMenu = DesktopMenu;

var Container = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteralLoose2["default"])(["\n  position: absolute;\n  width: 100%;\n  left: 0;\n  right: 0;\n  text-align: left;\n  display: none;\n  background: var(--menu-background);\n\n  @media only screen and (min-width: ", ") {\n    display: block;\n    text-align: center;\n    /* margin-left: -20px; */\n  }\n\n  &[data-is-active='true'] {\n    display: none;\n  }\n"])), function (_ref2) {
  var theme = _ref2.theme;
  return theme.breakpoints.lg.min;
});

var Inner = _styledComponents["default"].ul.attrs({
  className: 'mx-auto'
})(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteralLoose2["default"])(["\n  height: 60px;\n  overflow: hidden;\n\n  @media only screen and (min-width: ", ") {\n    /* width: calc(100% - 816px); */\n  }\n"])), function (_ref3) {
  var theme = _ref3.theme;
  return theme.breakpoints.xl.min;
});
//# sourceMappingURL=index.js.map