import { Activity } from "lucide-react"; import type { Agent } from "../api"; import { useLiveTranscript } from "../hooks/useLiveTranscript"; interface LiveAgentCardProps { agent: Agent; } function LiveAgentCard({ agent }: LiveAgentCardProps) { const { entries, isConnected } = useLiveTranscript(agent.taskId); const elapsed = agent.lastHeartbeatAt ? Math.floor((Date.now() - new Date(agent.lastHeartbeatAt).getTime()) / 1000) : 0; return (