// src/components/product/ProductGrid.tsx 'use client'; import { WooCommerceProduct } from '@/types/woocommerce'; import ProductCard from './ProductCard'; import { cn } from '@/lib/utils'; interface ProductGridProps { products: WooCommerceProduct[]; currentPage?: number; hasMore?: boolean; className?: string; viewMode?: 'grid' | 'list'; } export default function ProductGrid({ products, currentPage = 1, hasMore = false, className = '', viewMode = 'grid' }: ProductGridProps): JSX.Element { if (products.length === 0) { return (
Aucun produit ne correspond à vos critères de recherche. Essayez de modifier vos filtres.