mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
✨ Add disable edit mode environment variable (#730)
This commit is contained in:
11
src/hooks/useEditModeInformation.ts
Normal file
11
src/hooks/useEditModeInformation.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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