import GuestLayout from '@/Layouts/GuestLayout'; import InputError from '@/Components/InputError'; import PrimaryButton from '@/Components/PrimaryButton'; import TextInput from '@/Components/TextInput'; import { Head, useForm } from '@inertiajs/react'; import { FormEventHandler } from 'react'; 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)} />
Email Password Reset Link
); }