import React from 'react';
import GuestLayout from '@/Layouts/GuestLayout';
import { Head, useForm } from '@inertiajs/react';
interface ResetPasswordProps {
token: string;
email: string;
}
export default function ResetPassword({ token, email }: ResetPasswordProps) {
const { data, setData, post, processing, errors, reset } = useForm({
token,
email,
password: '',
password_confirmation: '',
});
const submit = (e: React.FormEvent) => {
e.preventDefault();
post(route('password.store'), { onFinish: () => reset('password', 'password_confirmation') });
};
return (
Choose a strong password for {email}.