import Image from "next/image"; import type { Product } from "@/lib/data"; import { Carousel } from "./Carousel"; import { ProductCard } from "./ProductCard"; type Props = { id?: string; image: string; products: Product[]; ariaLabel: string; tone?: "red" | "blue"; }; const gradients = { red: "linear-gradient(90deg, #ff3b3b 0%, #fc2424 45%, #d91010 100%)", blue: "linear-gradient(90deg, #4db3ff 0%, #1e88e5 48%, #0d5fb8 100%)", }; export function ProductShelf({ id, image, products, ariaLabel, tone = "red" }: Props) { return (
{ariaLabel}
{products.map((product) => (
))}
); }