import type { FilterMode } from "../types"; interface QuestionNavProps { questionIdx: number; sampleIdx: number; maxQuestions: number; maxSamples: number; filter: FilterMode; onQuestionChange: (idx: number) => void; onSampleChange: (idx: number) => void; onFilterChange: (filter: FilterMode) => void; } const FILTERS: { value: FilterMode; label: string }[] = [ { value: "all", label: "All" }, { value: "improvements", label: "Improvements" }, { value: "regressions", label: "Regressions" }, { value: "both-correct", label: "Both Correct" }, { value: "both-wrong", label: "Both Wrong" }, ]; export default function QuestionNav({ questionIdx, sampleIdx, maxQuestions, maxSamples, filter, onQuestionChange, onSampleChange, onFilterChange, }: QuestionNavProps) { const prevQ = () => onQuestionChange(Math.max(0, questionIdx - 1)); const nextQ = () => onQuestionChange(Math.min(maxQuestions - 1, questionIdx + 1)); const prevS = () => onSampleChange(Math.max(0, sampleIdx - 1)); const nextS = () => onSampleChange(Math.min(maxSamples - 1, sampleIdx + 1)); return (