import { Form, Head } from '@inertiajs/react'; import InputError from '@/components/input-error'; 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 AuthLayout from '@/layouts/auth-layout'; import { update } from '@/routes/password'; type Props = { token: string; email: string; }; export default function ResetPassword({ token, email }: Props) { return (
({ ...data, token, email })} resetOnSuccess={['password', 'password_confirmation']} > {({ processing, errors }) => (
)}
); }