Download src/store/userStore.js from shimen/kirway: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/spaces/shimen/kirway/resolve/main/src/store/userStore.js
- Command line
-
hf download hf://spaces/shimen/kirway/src/store/userStore.js
-
curl -L -o userStore.js https://huggingface.co/spaces/shimen/kirway/resolve/main/src/store/userStore.js
337 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; | |