'use client'; import { DatasetEntryForAnnotation, DIALECT_LABELS } from '@/lib/dialects'; import { useEffect, useRef } from 'react'; interface AnnotationSidebarNavigationProps { entries: DatasetEntryForAnnotation[]; currentIndex: number; onSelectEntry: (index: number) => void; annotatedCount: number; } export default function AnnotationSidebarNavigation({ entries, currentIndex, onSelectEntry, annotatedCount }: AnnotationSidebarNavigationProps) { const progressPct = Math.round((annotatedCount / entries.length) * 100); const activeButtonRef = useRef(null); useEffect(() => { activeButtonRef.current?.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); }, [currentIndex]); return ( ); }