- {isPersonalSettings
- ? 'Erase my personal account and all my repositories. '
- : 'Erase organization and all its repositories. '}
-
- Contact support
-
-
)
diff --git a/src/pages/AccountSettings/tabs/DeletionCard/EraseOwnerModal.tsx b/src/pages/AccountSettings/tabs/DeletionCard/EraseOwnerModal.tsx
new file mode 100644
index 0000000000..09026bdef4
--- /dev/null
+++ b/src/pages/AccountSettings/tabs/DeletionCard/EraseOwnerModal.tsx
@@ -0,0 +1,65 @@
+import Button from 'ui/Button'
+import Modal from 'ui/Modal'
+
+interface EraseOwnerModelProps {
+ isPersonalSettings: boolean
+ isLoading: boolean
+ showModal: boolean
+ closeModal: () => void
+ eraseOwner: () => void
+}
+
+function EraseOwnerModal({
+ isPersonalSettings,
+ closeModal,
+ eraseOwner,
+ isLoading,
+ showModal,
+}: EraseOwnerModelProps) {
+ const title = isPersonalSettings
+ ? 'Are you sure you want to delete your personal account?'
+ : 'Are you sure you want to erase this organization?'
+ let text = isPersonalSettings
+ ? 'This action will delete all personal data, including login information and personal tokens.'
+ : 'This action will delete all organization content and associated tokens.'
+ text +=
+ ' It will also erase all of the repositories, including all of their contents.'
+ text +=
+ ' This action is irreversible and if you proceed, you will permanently erase all of the associated content.'
+ const button = isPersonalSettings
+ ? 'Erase Personal Account'
+ : 'Erase Organization'
+
+ return (
+ {text}