import { ChevronLeft, ChevronRight, ChevronUp, ChevronDown, } from "lucide-react"; import useDeviceType from "@/hooks/use-device-type"; interface CarouselControlsProps { total: number; activeIndex: number; color?: string; dotColor?: string; orientation?: "horizontal" | "vertical"; onPrev: () => void; onNext: () => void; onSelect: (index: number) => void; } export default function CarouselControls({ total, activeIndex, color = "text-white border-white hover:bg-white/10", dotColor = "bg-white", orientation = "horizontal", onPrev, onNext, onSelect, }: Readonly) { const { isMobile } = useDeviceType(); const isVertical = orientation === "vertical"; const chevronSize = isMobile ? "h-11 w-11" : "h-[50px] w-[50px]"; const activeDotSize = isMobile ? "h-[38px] w-[38px]" : "h-[50px] w-[50px]"; const inactiveDotSize = isVertical ? isMobile ? "w-3 h-8" : "w-4 h-11" : isMobile ? "h-3 w-8" : "h-4 w-11"; const PrevIcon = isVertical ? ChevronUp : ChevronLeft; const NextIcon = isVertical ? ChevronDown : ChevronRight; return (
{Array.from({ length: total }).map((_, index) => (
); }