import { PROMPTS, GLASS_EFFECTS } from "../constants"; import GlassContainer from "./GlassContainer"; interface LiveCaptionProps { caption: string; isRunning?: boolean; error?: string | null; } export default function LiveCaption({ caption, isRunning, error }: LiveCaptionProps) { const content = error || caption; const { color, label } = error ? { color: "bg-red-500", label: "ERROR" } : isRunning ? { color: "bg-green-500 animate-pulse", label: "RUNNING" } : { color: "bg-yellow-500 animate-pulse", label: "STOPPED" }; return (

Live Caption

{label}
{content ? (
{content || PROMPTS.fallbackCaption}
) : (

{PROMPTS.processingMessage}

)}
); }