import { useState } from "react"; import { TimerReset } from "lucide-react"; import type { TimerState } from "../lib/types"; import { formatCountdown } from "../lib/format"; interface TimerPanelProps { timer: TimerState; onStart: (durationMs: number) => void; onStop: () => void; } export function TimerPanel({ timer, onStart, onStop }: TimerPanelProps) { const [hours, setHours] = useState("0"); const [minutes, setMinutes] = useState("30"); const [seconds, setSeconds] = useState("0"); return (