ENGLISH·COURSE API
    Preparing search index...
    DeleteAccountModal: FC<NiceModalHocProps> = ...

    Asks the learner to confirm deleting their account.

    Shown imperatively with await NiceModal.show(DeleteAccountModal), which resolves true only when the learner confirms, and false on every other way out: Cancel, the close control, Escape, the overlay.

    Cancel takes the initial focus, so a reflexive Enter backs out rather than deleting. Confirming does not delete anything yet: the caller requests the confirmation email, and the copy says so.

    const confirmed = await NiceModal.show(DeleteAccountModal);
    if (confirmed) await authClient.deleteUser({ callbackURL });