import { useAuth } from "@/util/auth";
import {
Button,
Center,
Container,
Fieldset,
Group,
Image,
PasswordInput,
Space,
Stack,
Text,
TextInput,
Title,
} from "@mantine/core";
import { useForm } from "@mantine/form";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { useEffect, useState } from "react";
function LoginPage() {
const [error, setError] = useState("");
const form = useForm({
initialValues: {
username: "",
password: "",
},
validate: {
username: (value) =>
value.length === 0 ? "Please enter a username" : null,
password: (value) =>
value.length === 0 ? "Please enter a password" : null,
},
});
const { signin } = useAuth();
useEffect(() => {
document.title = "Log In - Tailfin";
});
return (
Tailfin
);
}
export default function Login() {
const queryClient = new QueryClient();
return (
);
}