Files
page-assist/src/store/webui.tsx

18 lines
417 B
TypeScript
Raw Normal View History

import { create } from "zustand"
type State = {
sendWhenEnter: boolean
setSendWhenEnter: (sendWhenEnter: boolean) => void
ttsEnabled: boolean
setTTSEnabled: (isTTSEnabled: boolean) => void
}
export const useWebUI = create<State>((set) => ({
sendWhenEnter: true,
setSendWhenEnter: (sendWhenEnter) => set({ sendWhenEnter }),
ttsEnabled: false,
setTTSEnabled: (ttsEnabled) => set({ ttsEnabled })
}))