import { BlitzPage } from "@blitzjs/next" import Layout from "app/core/layouts/Layout" import { LoginForm } from "app/auth/components/LoginForm" import { useRouter } from "next/router" const LoginPage: BlitzPage = () => { const router = useRouter() return ( { const next = router.query.next ? decodeURIComponent(router.query.next as string) : "/" return router.push(next) }} /> ) } export default LoginPage