export interface Product {
  id: string;
  name: string;
  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) {
  try {
    console.log("Fetching product:", id);
    return null;
  } catch (err) {
    console.log("Failed to fetch product");
    return null;
  }
}

export async function fetchProducts() {
  try {
    console.log("Fetching products");
    return [];
  } catch (err) {
    console.log("Failed to fetch products");
    return [];
  }
}
