♻️ Show edit buttons only when user is admin
This commit is contained in:
1 parent
5c4e1a4bb8
commit
1038cc7ccf
4 files changed
+8
-46
No files matched your search
@@ -1,11 +0,0 @@
|
||||
import { create } from 'zustand';
|
||||
|
||||
interface EditModeInformationStore {
|
||||
editModeEnabled: boolean;
|
||||
setDisabled: () => void;
|
||||
}
|
||||
|
||||
export const useEditModeInformationStore = create<EditModeInformationStore>((set) => ({
|
||||
editModeEnabled: false,
|
||||
setDisabled: () => set(() => ({ editModeEnabled: true })),
|
||||
}));
|
||||
Reference in new issue
Block a user