import { createContext, useContext } from 'react'; import { AnimationConfig } from '@/components/AnimateItems'; export interface AppStateContext { previousPathname?: string hasLoaded?: boolean setHasLoaded?: (hasLoaded: boolean) => void nextPhotoAnimation?: AnimationConfig setNextPhotoAnimation?: (animation?: AnimationConfig) => void clearNextPhotoAnimation?: () => void } export const AppStateContext = createContext({}); export const useAppState = () => useContext(AppStateContext);