Spaces:
Running
Running
Download Frontend/src/store/adminStore.js from ritesh19180/ai-helpdesk-api: direct link, hf CLI and curl.
- Browser
- Download file 736 Bytes
-
https://huggingface.co/spaces/ritesh19180/ai-helpdesk-api/resolve/main/Frontend/src/store/adminStore.js
- Command line
-
hf download hf://spaces/ritesh19180/ai-helpdesk-api/Frontend/src/store/adminStore.js
-
curl -L -o adminStore.js https://huggingface.co/spaces/ritesh19180/ai-helpdesk-api/resolve/main/Frontend/src/store/adminStore.js
736 Bytes
| import { create } from 'zustand'; | |
| import { persist } from 'zustand/middleware'; | |
| const useAdminStore = create( | |
| persist( | |
| (set) => ({ | |
| adminProfile: { | |
| name: "Ritesh Singh", | |
| email: "admin@emerald-prime.io", | |
| profile_picture: null, | |
| role: "Root Administrator", | |
| id: "ADM-9921-X", | |
| lastLogin: "2026-03-01 22:15:04", | |
| region: "Unified Global Ops" | |
| }, | |
| updateProfile: (updates) => set((state) => ({ | |
| adminProfile: { ...state.adminProfile, ...updates } | |
| })), | |
| }), | |
| { | |
| name: 'admin-storage', | |
| } | |
| ) | |
| ); | |
| export default useAdminStore; | |