This commit is contained in:
parent
6f7b821c8b
commit
3a5b0bdcbc
162 changed files with 15801 additions and 224 deletions
11
FRONT/DEV/src/store/adminStore.ts
Normal file
11
FRONT/DEV/src/store/adminStore.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { create } from 'zustand'
|
||||
|
||||
interface AdminState {
|
||||
isAdmin: boolean;
|
||||
setAdmin: (isAdmin: boolean) => void;
|
||||
}
|
||||
|
||||
export const useAdminStore = create<AdminState>()((set) => ({
|
||||
isAdmin: false,
|
||||
setAdmin: (isAdmin: boolean) => set({ isAdmin }),
|
||||
}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue