"use client"; import { useRef } from "react"; type CarouselProps = { children: React.ReactNode; ariaLabel: string; }; function ChevronLeftIcon() { return ( ); } function ChevronRightIcon() { return ( ); } export function Carousel({ children, ariaLabel }: CarouselProps) { const trackRef = useRef(null); const scroll = (direction: "prev" | "next") => { const track = trackRef.current; if (!track) return; const amount = direction === "next" ? -280 : 280; track.scrollBy({ left: amount, behavior: "smooth" }); }; const btnClass = "absolute top-1/2 z-10 flex h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full border border-white/40 bg-white/40 text-red shadow-sm backdrop-blur-md transition-colors hover:border-red/40 hover:bg-white/60 hover:text-red-dark"; return (
{children}
); }