import { Form, Head } from '@inertiajs/react'; import InputError from '@/components/input-error'; import PasswordInput from '@/components/password-input'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Spinner } from '@/components/ui/spinner'; import { update } from '@/routes/password'; type Props = { token: string; email: string; passwordRules: string; }; export default function ResetPassword({ token, email, passwordRules }: Props) { return ( <>
({ ...data, token, email })} resetOnSuccess={['password', 'password_confirmation']} > {({ processing, errors }) => (
)}
); } ResetPassword.layout = { title: 'Reset password', description: 'Please enter your new password below', };