2024-03-07 14:04:59 +00:00
|
|
|
import Login from "./login"
|
2024-03-05 16:56:17 +00:00
|
|
|
|
|
|
|
export default function Index() {
|
2024-03-07 14:04:59 +00:00
|
|
|
const isLogged = false
|
|
|
|
|
|
|
|
if (isLogged) {
|
|
|
|
window.location.href = "/dashboard"
|
|
|
|
} else {
|
|
|
|
window.location.href = "/login"
|
|
|
|
}
|
|
|
|
|
|
|
|
return isLogged ? <div>Dashboard</div> : <Login />
|
2024-03-05 16:56:17 +00:00
|
|
|
}
|