Update src/lib/api/product.ts
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user