Merge pull request #179 from colin-campbell/stt-to-storage

stt-to-storage: UX - Move speechToText from state to storage.
This commit is contained in:
Muhammed Nazeem
2024-08-26 14:14:57 +05:30
committed by GitHub
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