mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-08-14 21:00:37 +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 })
|
|
}));
|