import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController'; import HeadingSmall from '@/components/heading-small'; import InputError from '@/components/input-error'; import { Button } from '@/components/ui/button'; import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogTitle, DialogTrigger } from '@/components/ui/dialog'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Form } from '@inertiajs/react'; import { useRef } from 'react'; import { useTranslation } from 'react-i18next'; export default function DeleteUser() { const { t } = useTranslation('auth'); const passwordInput = useRef(null); return (

Warning

Please proceed with caution, this cannot be undone.

Are you sure you want to delete your account? {t('auth.delete_user.confirm_text')}
passwordInput.current?.focus()} resetOnSuccess className="space-y-6" > {({ resetAndClearErrors, processing, errors }) => ( <>
)}
); }