"use client";
import { motion, AnimatePresence } from "framer-motion";
import { Mic, MicOff } from "lucide-react";
interface VoiceButtonProps {
isRecording: boolean;
onToggle: () => void;
}
export function VoiceButton({ isRecording, onToggle }: VoiceButtonProps) {
return (
{/* Pulsing rings when recording */}
{isRecording && (
<>
>
)}
{/* Glow background */}
{isRecording && (
)}
{/* Main button */}
{isRecording ? (
) : (
)}
);
}
/** Simple waveform visualization component */
export function WaveformVisualizer({ isActive }: { isActive: boolean }) {
const bars = 24;
return (
{Array.from({ length: bars }).map((_, i) => (
))}
);
}