import { AuthenticationError, Link, useMutation, Routes } from "blitz" import { LabeledTextField } from "../../core/components/labeled-text-field" import { Form, FORM_ERROR } from "../../core/components/form" import login from "../../../app/auth/mutations/login" import { Login } from "../validations" type LoginFormProps = { onSuccess?: () => void } export const LoginForm = (props: LoginFormProps) => { const [loginMutation] = useMutation(login) return (