import type { YearInfo } from '../../api/watercraft'; import { formatDate } from '../../traffic/format'; interface YearControlsProps { years: YearInfo[]; year: number; playing: boolean; onYearChange: (year: number) => void; onPlayingChange: (playing: boolean) => void; } export function YearControls({ years, year, playing, onYearChange, onPlayingChange, }: YearControlsProps) { const current = years.find((y) => y.year === year); return (