import { writable } from "svelte/store";
|
|
export type IndicatorStatus =
|
| "loading"
|
| "ready"
|
| "recording"
|
| "processing"
|
| "done"
|
| "cancelled"
|
| "no_voice"
|
| "no_content"
|
| "error"
|
| "hidden";
|
|
export const indicatorVisible = writable<boolean>(false);
|
export const indicatorStatus = writable<IndicatorStatus>("hidden");
|
export const indicatorVolume = writable<number>(0);
|
const defaultHotkeyName =
|
typeof navigator !== "undefined" && /Win/.test(navigator.platform)
|
? "R-Win"
|
: "";
|
|
export const hotkeyName = writable<string>(defaultHotkeyName);
|