New profile

This commit is contained in:
2026-08-18 18:28:38 +02:00
parent 591d121204
commit e9fe71784a
8 changed files with 172 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
import { invoke } from "@tauri-apps/api/core";
export interface Account {
displayName: string;
privateKey: string;
}
export interface AccountsFile {
activeAccount: number | null;
accounts: Account[];
}
export async function getAccounts(): Promise<AccountsFile> {
return await invoke("get_accounts");
}
export async function saveAccounts(data: AccountsFile): Promise<void> {
await invoke("save_accounts", { data });
}