"use client"; import { Mic, MicOff } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Card } from "@/components/ui/card"; import { cn } from "@/lib/utils"; interface MicControlProps { connected: boolean; active: boolean; onToggle: (active: boolean) => void; volume: number; onVolumeChange: (v: number) => void; } export function MicControl({ connected, active, onToggle, volume, onVolumeChange, }: MicControlProps) { return (
Vol onVolumeChange(Number(e.target.value))} className="flex-1 h-1 appearance-none bg-glass-border rounded-full accent-primary [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:size-3 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:shadow-[0_0_8px] [&::-webkit-slider-thumb]:shadow-primary/60" /> {volume}%
); }