"use client"; import { useRef, type ReactNode } from "react"; import { IconArrow } from "./Icons"; type Props = { children: ReactNode; className?: string; ariaLabel?: string; flush?: boolean; tight?: boolean; }; export function Carousel({ children, className = "", ariaLabel, flush = false, tight = false }: Props) { const scroller = useRef(null); const move = (direction: number) => { const el = scroller.current; if (!el) return; const delta = Math.max(el.clientWidth * 0.55, 240) * direction; el.scrollBy({ left: delta, behavior: "smooth" }); }; return (
{children}
); }