/* * Derived from vercel/ai-elements (skills/ai-elements/scripts/mic-selector.tsx). * Copyright 2023 Vercel, Inc. Licensed under Apache-2.0. * Modified by ZCode: local integration, formatting and adaptations. * See THIRD-PARTY-NOTICES.md in the repository root for license and provenance. */ "use client"; import { MicSelector, MicSelectorContent, MicSelectorEmpty, MicSelectorInput, MicSelectorItem, MicSelectorLabel, MicSelectorList, MicSelectorTrigger, MicSelectorValue, } from "@/components/ai-elements/mic-selector"; const handleOpenChange = (open: boolean) => { console.log("MicSelector is open?", open); }; const handleValueChange = (newValue: string) => { console.log("MicSelector value:", newValue); }; const Example = () => (
{(devices) => devices.map((device) => ( )) }
); export default Example;