import { Link } from "@/lib/router"; import { cn } from "@/lib/utils"; import { describeRunRetryState } from "@/lib/runRetryState"; /** Shared with the run page so Storybook exercises the production retry copy. */ export function RunRetryDetails({ run, agentRouteId }: { run: Parameters[0]; agentRouteId: string; }) { const retry = describeRunRetryState(run); if (!retry) return null; return
{retry.badgeLabel} {retry.retryOfRunId && {retry.retryOfRunId.slice(0, 8)}}
{retry.detail &&

{retry.detail}

} {retry.secondary &&

{retry.secondary}

}
; }