import { Link } from "@tanstack/react-router"; import { toast } from "sonner"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { authClient } from "@/lib/auth-client"; import { useAppForm } from "@/lib/formSutff"; export default function ResetForm() { const form = useAppForm({ defaultValues: { email: "", }, onSubmit: async ({ value }) => { const { data, error } = await authClient.requestPasswordReset({ email: value.email, redirectTo: `${window.location.origin}`, }); if (data) { toast.success(data.message); } if (error) { toast.error(error.message); } }, }); return (