ENGLISH·COURSE API
    Preparing search index...
    • The last section of the Profile page: deletes the learner's account.

      Returns Element

      It carries neither heading nor description: the page wraps it in a ProfileSection, which owns the h2, the supporting line and the region, so the page's last section is titled like every other one.

      The button opens DeleteAccountModal. Confirming there asks Better Auth for a confirmation email whose link returns to this locale's account-deleted page; nothing is deleted until the learner opens that link while signed in. The section then announces the email as a status, or a refused request as an alert.

      The section waits the way every account form waits, through the same PendingButton and AccountWait — its beam sweeps this <section> rather than an account card. It keeps its own state machine rather than adopting useAccountSubmission: it is not a form, it is unchallenged, its errors live in its own namespace, and its sent state is terminal in a way the hook has no concept of. There is no paused region because there is nothing to pause — the section has no fields.

      Needs a NiceModal.Provider above it, which the app's global providers mount.

      <ProfileSection title={t("deleteAccount.heading")} note={t("deleteAccount.description")}>
      <DeleteAccountSection />
      </ProfileSection>