Инициализация в новом репозитории
This commit is contained in:
commit
eb1f18f53e
374 changed files with 226678 additions and 0 deletions
11
FRONT/DEV/src/store/pannableStore.ts
Normal file
11
FRONT/DEV/src/store/pannableStore.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import {create} from 'zustand';
|
||||
|
||||
interface FlowState {
|
||||
isPanDisabled: boolean;
|
||||
toggleEditingMode: () => void;
|
||||
}
|
||||
|
||||
export const usePannableStore = create<FlowState>((set) => ({
|
||||
isPanDisabled: false,
|
||||
toggleEditingMode: () => set((state) => ({ isPanDisabled: !state.isPanDisabled })),
|
||||
}));
|
||||
Loading…
Add table
Add a link
Reference in a new issue