import { Pause, Pencil, Play, X } from 'lucide-react' import type { ReactNode } from 'react' import { VoiceConversationOrb } from '@/components/message/VoiceConversationOrb' import { Button } from '@/components/ui/button' import { getIconToggleButtonClassName } from '@/components/ui/icon-toggle-button' import { SquareFill } from '@/components/ui/square-fill' import type { VoiceConversationController } from '@/hooks/useVoiceConversation' import { cn } from '@/lib/utils' const BAR_ICON_BUTTON_CLASS = cn( getIconToggleButtonClassName(false), 'flex size-11 shrink-0 items-center justify-center p-0', ) const RESERVED_LINE_CLASS = 'h-4 w-full truncate text-center leading-4' interface BarIconButtonProps { label: string onClick: () => void children: ReactNode } function BarIconButton({ label, onClick, children }: BarIconButtonProps) { return ( ) } export interface VoiceConversationBarProps { controller: VoiceConversationController hasPendingApproval: boolean onViewApproval: () => void } export function VoiceConversationBar({ controller, hasPendingApproval, onViewApproval, }: VoiceConversationBarProps) { const { phase, label, hint, orbLabel, liveTranscript, canEditInTextBox, canStopAgent, hasHeldReading, notice, } = controller return (
{notice ?? ''}
{hint}