import { AuthState } from './AuthContext' ; import { LOADING , LoggedInState } from './types' ; export function isLoggedInState ( state ) { return typeof state === 'object' && state !== null && 'jwt' in state ; } export function isLoadingState ( state ) { return state === LOADING ; }