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

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

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