import { X } from "lucide-react"; import { motion } from "motion/react"; import type { VoiceState } from "../../../hooks/useVoiceSession"; interface VoiceStatusBarProps { voiceState: VoiceState; onStop: () => void; } const STATE_LABELS: Record = { IDLE: "", CONNECTING: "Connecting...", LISTENING: "Listening...", PROCESSING: "Processing...", SPEAKING: "Agent is speaking", ERROR: "Connection error", }; const STATE_COLORS: Record = { IDLE: "", CONNECTING: "bg-brand-green/10 text-brand-green border-brand-green/20", LISTENING: "bg-brand-green/10 text-brand-green border-brand-green/20", PROCESSING: "bg-brand-amber/10 text-brand-amber border-brand-amber/20", SPEAKING: "bg-brand-cyan/10 text-brand-cyan border-brand-cyan/20", ERROR: "bg-red-50 text-red-500 border-red-200", }; export default function VoiceStatusBar({ voiceState, onStop }: VoiceStatusBarProps) { return (
{STATE_LABELS[voiceState]}
); }