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

var _templateObject, _templateObject2;

import React from 'react';
import styled from 'styled-components';
import { useBasketItemList } from '@sentecacommerce-theme/lib';
import { Product, CustomProduct } from './Components';
export var ProductsList = (_ref) => {
  var {
    errorRef
  } = _ref;
  var {
    lineItems,
    customLineItems
  } = useBasketItemList();
  return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Inner, null, lineItems == null ? void 0 : lineItems.map(item => /*#__PURE__*/React.createElement(Product, {
    errorRef: errorRef,
    item: item,
    key: item._id
  })), customLineItems == null ? void 0 : customLineItems.map(item => /*#__PURE__*/React.createElement(CustomProduct, {
    item: item,
    key: item._id
  }))));
};
var Container = styled.div.attrs({
  className: 'mb-3'
})(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([""])));
var Inner = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n  box-shadow: rgb(229, 229, 229) 0px 1px 0px 0px inset;\n\n  @media only screen and (min-width: ", ") {\n    box-shadow: none;\n  }\n"])), (_ref2) => {
  var {
    theme
  } = _ref2;
  return theme.breakpoints.lg.min;
});
//# sourceMappingURL=index.js.map