import type { BlitzPage } from "blitz"; import { useRouter, Routes, AuthenticationError, Link, useMutation } from "blitz"; import BaseLayout from "../../core/layouts/base-layout"; import { AuthForm as Form, FORM_ERROR } from "../components/auth-form"; import { Login } from "../validations"; import { LabeledTextField } from "../components/labeled-text-field"; import login from "../mutations/login"; const SignIn: BlitzPage = () => { const router = useRouter(); const [loginMutation] = useMutation(login); return (
); }; SignIn.redirectAuthenticatedTo = Routes.Messages(); SignIn.getLayout = (page) =>