import { useAppContext } from '@/contexts/AppContext'
import { NewDashboardPage } from './dashboard/NewDashboardPage'
import { LoginPage } from './login/LoginPage'

export const Router = () => {
	const { loggedIn } = useAppContext()

	return (
		<>
			{loggedIn && <NewDashboardPage />}
			{!loggedIn && <LoginPage />}
		</>
	)
}
