import { ChevronLeft, ChevronRight } from 'lucide-react'; import { useLazyTranslation } from '@/utils/useLazyTranslation'; interface DiffNavigatorProps { total: number; /** 0-based index */ currentIndex: number; onPrev: () => void; onNext: () => void; } export default function DiffNavigator({ total, currentIndex, onPrev, onNext }: DiffNavigatorProps) { const { t } = useLazyTranslation('jsonDiff'); if (total === 0) { return (