mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-08-15 05:10:36 +03:00
14 lines
356 B
TypeScript
14 lines
356 B
TypeScript
![]() |
import { create } from 'zustand';
|
||
|
|
||
|
interface TransitionState {
|
||
|
isNavigating: boolean;
|
||
|
startNavigation: () => void;
|
||
|
endNavigation: () => void;
|
||
|
}
|
||
|
|
||
|
export const useAppTransitionStore = create<TransitionState>(set => ({
|
||
|
isNavigating: false,
|
||
|
startNavigation: () => set({ isNavigating: true }),
|
||
|
endNavigation: () => set({ isNavigating: false })
|
||
|
}));
|