import type { VoiceTranscriptEntry } from "@/lib/voice-transcript"; export interface VoiceTranscriptProps { entries: readonly VoiceTranscriptEntry[]; agentName: string; unavailable?: boolean; } /** Announcements belong to the session controller, once per final segment. */ export function VoiceTranscript({ entries, agentName, unavailable = false }: VoiceTranscriptProps) { if (unavailable) return
The transcript is unavailable. Your task history is still available.
; if (!entries.length) returnYour conversation will appear here.
; return ({entry.text}