import { useRouter } from 'next/router' import { useEffect } from 'react' import { useAuth } from '../../contexts/authContext' export default function Dashboard() { const { currUser, signOut } = useAuth() const router = useRouter() useEffect(() => { // if not authed, go to home if (!currUser) { console.log('routing from dashboard to teams home') router.push('/teams') } }, []) return (

This is the dashboard

) }