diff --git a/src/lib/api/product.ts b/src/lib/api/product.ts index 232d5a4..73e878b 100644 --- a/src/lib/api/product.ts +++ b/src/lib/api/product.ts @@ -4,6 +4,23 @@ export interface Product { price: string; imageSrc: string; imageAlt?: string; + rating?: number; + reviewCount?: number; + brand?: string; +} + +export interface ProductCard { + id: string; + name: string; + price: string; + imageSrc: string; + imageAlt?: string; + onFavorite?: () => void; + isFavorited?: boolean; + onProductClick?: () => void; + rating?: number; + reviewCount?: number; + brand?: string; } export async function fetchProduct(id: string) {