File size: 403 Bytes
d39feec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import React from 'react'
import ProductCard from './ProductCard'

const ProductGrid = ({ products, onAddToCart }) => {
  return (
    <div className="row g-4">
      {products.map(product => (
        <div key={product.id} className="col-md-6 col-lg-4 col-xl-3">
          <ProductCard product={product} onAddToCart={onAddToCart} />
        </div>
      ))}
    </div>
  )
}

export default ProductGrid