Update src/lib/api/product.ts
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
export interface Product {
|
||||
id: string;
|
||||
name: string;
|
||||
price: string;
|
||||
imageSrc: string;
|
||||
imageAlt?: string;
|
||||
}
|
||||
|
||||
export async function fetchProduct(id: string) {
|
||||
try {
|
||||
console.log("Fetching product:", id);
|
||||
|
||||
Reference in New Issue
Block a user