import type { TimeFrame } from '../hooks/useAnimation'; interface AnimationPlayerProps { frames: TimeFrame[]; currentIndex: number; playing: boolean; speed: 1 | 2 | 4; onSeek: (i: number) => void; onPlay: () => void; onPause: () => void; onSpeedChange: (s: 1 | 2 | 4) => void; onClose: () => void; } export function AnimationPlayer({ frames, currentIndex, playing, speed, onSeek, onPlay, onPause, onSpeedChange, onClose, }: AnimationPlayerProps) { const frame = frames[currentIndex]; return (