♻️ Show edit buttons only when user is admin

This commit is contained in:
Meier Lukas committed 2023-07-29 16:16:01 +02:00
1 parent 5c4e1a4bb8
commit 1038cc7ccf
4 files changed
+8 -46

No files matched your search

-11
View File
@@ -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 })),
}));