import { motion } from 'motion/react'; export type AudioIndicatorState = 'idle' | 'generating' | 'playing'; interface AudioIndicatorProps { state: AudioIndicatorState; agentColor?: string; } const BAR_COUNT = 4; export function AudioIndicator({ state, agentColor = '#10b981' }: AudioIndicatorProps) { if (state === 'idle') return null; const color = state === 'generating' ? 'rgba(251, 191, 36, 0.7)' : agentColor; const cycleDuration = state === 'generating' ? 0.8 : 0.5; return ( {Array.from({ length: BAR_COUNT }).map((_, i) => ( ))} ); }