import { createRef } from "preact"; import { ChatStore } from "@/types/chatstore"; import { StateUpdater, useEffect, useState, Dispatch } from "preact/hooks"; import { Button } from "@/components/ui/button"; import { AudioWaveform, AudioWaveformIcon, CircleStopIcon, MicIcon, VoicemailIcon, } from "lucide-react"; const WhisperButton = (props: { chatStore: ChatStore; inputMsg: string; setInputMsg: Dispatch>; }) => { const { chatStore, inputMsg, setInputMsg } = props; const mediaRef = createRef(); const [isRecording, setIsRecording] = useState("Mic"); return ( ); }; export default WhisperButton;