import type { OverviewResponse } from "@/lib/api-types";
import { RunProgressBanner } from "@/components/runs/RunProgressBanner";

/** Live banner while a fleet run is in progress. */
export function CurrentRunBanner({ current }: { current: OverviewResponse["currentRun"] }) {
  if (!current) return null;
  return (
    <div className="mb-4">
      <RunProgressBanner
        runId={current.runId}
        startedAt={current.startedAt}
        done={current.regionsCompleted}
        total={current.regionsTotal}
      />
    </div>
  );
}
