stt-to-storage: UX - Move speechToText from state to storage.

This commit is contained in:
Colin Campbell
2024-08-25 13:37:39 +02:00
parent 788d6c9c1f
commit 13cbc5b084
4 changed files with 9 additions and 8 deletions

View File

@@ -16,9 +16,13 @@ import {
import { useStorage } from "@plasmohq/storage/hook"
export const GeneralSettings = () => {
const { clearChat, speechToTextLanguage, setSpeechToTextLanguage } =
const { clearChat } =
useMessageOption()
const [ speechToTextLanguage, setSpeechToTextLanguage ] = useStorage(
"speechToTextLanguage",
"en-US"
)
const [copilotResumeLastChat, setCopilotResumeLastChat] = useStorage(
"copilotResumeLastChat",
false