// — what a broadcast came back with: how many agents got it, one // line per agent, and a way to select just the ones that failed for a retry. import { AgentIcon } from "../../agent/AgentIcon.js"; import { failedAgents, type BroadcastResult } from "./broadcast-types.js"; import "./BroadcastComposer.css"; export function SendResults({ results, onRetry, }: { results: BroadcastResult[]; onRetry: (results: BroadcastResult[]) => void; }) { const failed = failedAgents(results); const sent = results.length - failed.length; return (

sent to {sent} of {results.length} {failed.length > 0 && ( )}

); }