import GuestLayout from "@/layouts/guest-layout"; import { Head, useForm } from "@inertiajs/react"; import { FormEventHandler } from "react"; import { Input } from "@/components/ui/input"; import { InputError } from "@/components/ui/input-error"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardFooter, CardHeader, } from "@/components/ui/card"; export default function ForgotPassword({ status }: { status?: string }) { const { data, setData, post, processing, errors } = useForm({ email: "", }); const submit: FormEventHandler = (e) => { e.preventDefault(); post(route("password.email")); }; return (
Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one. {status && (
{status}
)} setData("email", e.target.value)} />
); }