'use client'; import { Button } from '@headlessui/react'; import { PauseIcon } from '@/components/icons/Icons'; import { useTTS } from '@/contexts/TTSContext'; export function RateLimitPauseButton() { const { isPlaying, togglePlay } = useTTS(); // Only show while audio is actively playing. This avoids presenting a "play" affordance // when the user is rate-limited. if (!isPlaying) return null; return ( ); }