"use client";
import Link from "next/link";
import { useEffect, useState } from "react";
import type { Product } from "@/lib/catalog";
import { slotImages, type StaticImageSlot } from "@/lib/static-images";
import { Carousel } from "./Carousel";
import { ProductCard } from "./ProductCard";
import { SectionHeading } from "./SectionHeading";
import { SlotImage } from "./SlotImage";
type Props = {
id?: string;
english: string;
title: string;
products: Product[];
countdown?: boolean;
leadBanner?: boolean;
bannerSlot?: StaticImageSlot;
href?: string;
};
export function ProductCarousel({
id,
english,
title,
products,
countdown,
leadBanner,
bannerSlot,
href,
}: Props) {
const saleBanner = slotImages(bannerSlot)[0];
if (!products.length && !leadBanner) return null;
return (
{String(cell.value).padStart(2, "0")}
{cell.label}