import React from 'react';
import { ProductCard } from './ProductCard';
export var Products = (_ref) => {
  var {
    products,
    setRestock,
    setVariant,
    setProducts,
    variant,
    update
  } = _ref;
  return /*#__PURE__*/React.createElement(React.Fragment, null, products == null ? void 0 : products.map((el, i) => {
    return /*#__PURE__*/React.createElement(ProductCard, {
      setVariant: setVariant,
      key: "Product__" + i,
      item: el,
      setRestock: setRestock,
      setProducts: setProducts,
      index: i,
      products: products,
      update: update,
      lastItem: products.length - 1 === i
    });
  }));
};
//# sourceMappingURL=index.js.map