import {useAuthProvider} from '../providers/auth-provider'; function useAuth() { const {isAuth, logout} = useAuthProvider(); return {isAuth, logout}; } export default useAuth;