"use strict";

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

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

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

var _ProductCard = require("./ProductCard");

var Products = function Products(_ref) {
  var products = _ref.products,
      setRestock = _ref.setRestock,
      setVariant = _ref.setVariant,
      setProducts = _ref.setProducts,
      variant = _ref.variant,
      update = _ref.update;
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, products == null ? void 0 : products.map(function (el, i) {
    return /*#__PURE__*/_react["default"].createElement(_ProductCard.ProductCard, {
      setVariant: setVariant,
      key: "Product__" + i,
      item: el,
      setRestock: setRestock,
      setProducts: setProducts,
      index: i,
      products: products,
      update: update,
      lastItem: products.length - 1 === i
    });
  }));
};

exports.Products = Products;
//# sourceMappingURL=index.js.map