import { client } from "@/util/api"; import { useLogin } from "@/util/hooks"; import { Box, Button, Group, PasswordInput, Stack, TextInput, Title, } from "@mantine/core"; import { useForm } from "@mantine/form"; export default function Login() { const form = useForm({ initialValues: { username: "", password: "", }, }); const signInMutation = useLogin(); return ( Login
{ signInMutation(values); })} >
); }