import { NextPage } from "next"; import Layout from "../components/Layout"; import useForm from "../hooks/useForm"; import { ApiMethods, ApiPaths } from "../utils/api"; const Login: NextPage = () => { const { error, submitHandler } = useForm({ path: ApiPaths.Login, method: ApiMethods.POST, }); return (
{error && (
{error.message}
)}
); }; export default Login;