'use client'; import { Volume2, VolumeX } from 'lucide-react'; import { ChatHeaderActionButton } from './ChatHeaderActionButton'; export interface ChatHeaderAudioToggleProps { /** Current muted state. */ muted: boolean; /** Toggle handler. Wire to `useChatAudio().setMuted` or `toggleMute`. */ onToggle: () => void; /** Override tooltip label for muted → unmuted. */ unmuteLabel?: string; /** Override tooltip label for unmuted → muted. */ muteLabel?: string; } /** * Mute / unmute notification sounds. Drop into a `` actions * slot or into ``. * * @example * ```tsx * const audio = useChatAudio({ sounds: {...} }); * audio.setMuted(!audio.muted)} /> * ``` */ export function ChatHeaderAudioToggle({ muted, onToggle, unmuteLabel = 'Unmute notifications', muteLabel = 'Mute notifications', }: ChatHeaderAudioToggleProps) { return ( ) : ( ) } ariaLabel={muted ? unmuteLabel : muteLabel} onClick={onToggle} /> ); }