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

{t('Warning')}

{t( 'Please proceed with caution, this cannot be undone.', )}

{t('Are you sure you want to delete your account?')} {t( 'Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.', )}
passwordInput.current?.focus()} resetOnSuccess className="space-y-6" > {({ resetAndClearErrors, processing, errors }) => ( <>
)}
); }