interface TaskStatusBarProps { taskId?: string; status: string; progress: number; /** Label shown on the right side when idle (no active task). */ idleLabel?: string; } export default function TaskStatusBar({ taskId, status, progress, idleLabel }: TaskStatusBarProps) { const isActive = Boolean(taskId); const normalizedProgress = Math.max(0, Math.min(100, Math.trunc(Number(progress) || 0))); return ( ); }