/** * Composant NextPreviousButtons * Boutons pour naviguer dans la queue (next/previous) */ import { SkipBack, SkipForward } from 'lucide-react'; import { cn } from '@/lib/utils'; export interface NextPreviousButtonsProps { onNext: () => void; onPrevious: () => void; canGoNext: boolean; canGoPrevious: boolean; size?: 'sm' | 'md' | 'lg'; variant?: 'default' | 'ghost' | 'outline'; className?: string; disabled?: boolean; } export function NextPreviousButtons({ onNext, onPrevious, canGoNext, canGoPrevious, size = 'md', variant = 'ghost', className, disabled = false, }: NextPreviousButtonsProps) { const sizeClasses = { sm: 'h-8 w-8', md: 'h-10 w-10', lg: 'h-12 w-12', }; const iconSizes = { sm: 'h-4 w-4', md: 'h-5 w-5', lg: 'h-6 w-6', }; const variantClasses = { default: 'bg-primary text-primary-foreground hover:bg-primary focus:ring-primary', ghost: 'bg-transparent text-foreground hover:bg-muted focus:ring-primary', outline: 'border border-border bg-card text-foreground hover:bg-muted focus:ring-muted', }; const isPreviousDisabled = disabled || !canGoPrevious; const isNextDisabled = disabled || !canGoNext; return (