♻️ Show edit buttons only when user is admin

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

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 })),
}));