// src/components/ui/ProductCard.tsx import Image from "next/image"; import Link from "next/link"; import { Plus } from "lucide-react"; interface ProductCardProps { id: string; title: string; category: string; price: number; imageUrl: string; index?: number; // Para escalonar animaciones si queremos } export default function ProductCard({ id, title, category, price, imageUrl, index = 1 }: ProductCardProps) { return ( {/* Contenedor de Imagen (Gris pálido, bordes muy redondos) */}
{/* Número de índice estilo editorial */} {index.toString().padStart(2, '0')} {/* Botón flotante "Quick Add" (aparece en hover) */} {/* Imagen del Producto */}
{title}
{/* Información del Producto */}

{title}

{category}

{new Intl.NumberFormat('es-ES', { style: 'currency', currency: 'EUR' }).format(price)}
); }