Initial commit
This commit is contained in:
commit
53f35caeab
18 changed files with 5527 additions and 0 deletions
10
src/store/useStore.js
Normal file
10
src/store/useStore.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { create } from 'zustand';
|
||||
|
||||
export const useStore = create((set) => ({
|
||||
publicKey: null,
|
||||
privateKey: null,
|
||||
profile: null,
|
||||
setKeys: (publicKey, privateKey) => set({ publicKey, privateKey }),
|
||||
setProfile: (profile) => set({ profile }),
|
||||
logout: () => set({ publicKey: null, privateKey: null, profile: null }),
|
||||
}));
|
Loading…
Add table
Add a link
Reference in a new issue