import _taggedTemplateLiteralLoose from "@babel/runtime/helpers/taggedTemplateLiteralLoose";

var _templateObject, _templateObject2;

import React from 'react';
import styled from 'styled-components';
import { MenuItem } from './MenuItem';
export var DesktopMenu = (_ref) => {
  var {
    defaultFeaturedBrandsImage,
    data
  } = _ref;
  return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Inner, null, data == null ? void 0 : data.map(element => {
    return /*#__PURE__*/React.createElement(MenuItem, {
      defaultFeaturedBrandsImage: defaultFeaturedBrandsImage,
      key: element._id,
      data: element
    });
  })));
};
var Container = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\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"])), (_ref2) => {
  var {
    theme
  } = _ref2;
  return theme.breakpoints.lg.min;
});
var Inner = styled.ul.attrs({
  className: 'mx-auto'
})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n  height: 60px;\n  overflow: hidden;\n\n  @media only screen and (min-width: ", ") {\n    /* width: calc(100% - 816px); */\n  }\n"])), (_ref3) => {
  var {
    theme
  } = _ref3;
  return theme.breakpoints.xl.min;
});
//# sourceMappingURL=index.js.map