import type { BlitzPage } from "blitz"; import { useRouter, Routes, useMutation, Link } from "blitz"; import BaseLayout from "../../core/layouts/base-layout"; import { AuthForm as Form, FORM_ERROR } from "../components/auth-form"; import { LabeledTextField } from "../components/labeled-text-field"; import signup from "../mutations/signup"; import { Signup } from "../validations"; const SignUp: BlitzPage = () => { const router = useRouter(); const [signupMutation] = useMutation(signup); return (
); }; SignUp.redirectAuthenticatedTo = ({ session }) => { if (session.shouldShowWelcomeMessage) { return Routes.Welcome(); } return Routes.Messages(); }; SignUp.getLayout = (page) =>