import React, { useState } from 'react'; import { Modal, Stack, Text, PasswordInput, Group, Button, } from '@mantine/core'; interface DeleteAccountModalProps { opened: boolean; onClose: () => void; onConfirm: (password: string) => Promise; } const DeleteAccountModal: React.FC = ({ opened, onClose, onConfirm, }) => { const [password, setPassword] = useState(''); return ( Warning: This action cannot be undone Please enter your password to confirm account deletion. setPassword(e.currentTarget.value)} required /> ); }; export default DeleteAccountModal;