import { useAuth } from './useAuth'

export function useIsAuthenticated(): { isAuthenticated: boolean; isLoading: boolean } {
  const { data, isLoading, isError } = useAuth()
  return { isAuthenticated: !!data && !isError, isLoading }
}
