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'; export default function DeleteUser() { const passwordInput = useRef(null); return (

Внимание

Это действие необратимо. Все маркеры и отметки будут удалены.

Вы уверены, что хотите удалить аккаунт? После удаления аккаунта все его данные будут безвозвратно удалены. Введите пароль, чтобы подтвердить удаление.
passwordInput.current?.focus()} resetOnSuccess className="space-y-6" > {({ resetAndClearErrors, processing, errors }) => ( <>
)}
); }