diff options
Diffstat (limited to 'ui/src/state/client.ts')
| -rw-r--r-- | ui/src/state/client.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/src/state/client.ts b/ui/src/state/client.ts new file mode 100644 index 00000000..f43683c1 --- /dev/null +++ b/ui/src/state/client.ts @@ -0,0 +1,13 @@ +// At some point, I'd like to replace some of the Atuin calls +// with separate state handling here + +import { invoke } from "@tauri-apps/api/core"; +import { Settings } from "@/state/models"; + +export async function sessionToken(): Promise<String> { + return await invoke("session"); +} + +export async function settings(): Promise<Settings> { + return await invoke("config"); +} |
