main
ts 17 lines 388 Bytes
Raw
1 import { LazyStore } from "@tauri-apps/plugin-store";
2 import { ACCOUNT, DATA, SETTINGS } from "../crate/generated";
3
4 export function storeSettings() {
5 const store = new LazyStore(SETTINGS);
6 return store;
7 }
8
9 export function storeData() {
10 const store = new LazyStore(DATA);
11 return store;
12 }
13
14 export function storeAccount() {
15 const store = new LazyStore(ACCOUNT);
16 return store;
17 }