From dcf8008c4dfe04eb26e389c005944156916957f1 Mon Sep 17 00:00:00 2001 From: ecwu Date: Wed, 25 Dec 2024 16:19:49 +0800 Subject: [PATCH] Refactor WhisperButton to enhance icon representation and prevent default click behavior --- src/components/WhisperButton.tsx | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/components/WhisperButton.tsx b/src/components/WhisperButton.tsx index b856dd6..30a6c53 100644 --- a/src/components/WhisperButton.tsx +++ b/src/components/WhisperButton.tsx @@ -3,6 +3,12 @@ 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, + MicIcon, + VoicemailIcon, +} from "lucide-react"; const WhisperButton = (props: { chatStore: ChatStore; @@ -14,11 +20,14 @@ const WhisperButton = (props: { const [isRecording, setIsRecording] = useState("Mic"); return ( ); };