Spaces:
Paused
Paused
Download src/store/userStore.ts from igorkurgin/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/src/store/userStore.ts
- Command line
-
hf download hf://spaces/igorkurgin/omniroute/src/store/userStore.ts
-
curl -L -o userStore.ts https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/src/store/userStore.ts
336 Bytes
| "use client"; | |
| import { create } from "zustand"; | |
| const useUserStore = create((set) => ({ | |
| user: null, | |
| loading: false, | |
| error: null, | |
| setUser: (user) => set({ user }), | |
| clearUser: () => set({ user: null }), | |
| setLoading: (loading) => set({ loading }), | |
| setError: (error) => set({ error }), | |
| })); | |
| export default useUserStore; | |