AccountDeletion.tsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { Alert, AlertDescription, AlertTitle, CriticalIcon } from 'ui'
  2. import {
  3. PageSection,
  4. PageSectionContent,
  5. PageSectionDescription,
  6. PageSectionMeta,
  7. PageSectionSummary,
  8. PageSectionTitle,
  9. } from 'ui-patterns/PageSection'
  10. import { DeleteAccountButton } from './DeleteAccountButton'
  11. export const AccountDeletion = () => {
  12. return (
  13. <PageSection>
  14. <PageSectionMeta>
  15. <PageSectionSummary>
  16. <PageSectionTitle>Danger zone</PageSectionTitle>
  17. <PageSectionDescription>
  18. Permanently delete your Briven account and data.
  19. </PageSectionDescription>
  20. </PageSectionSummary>
  21. </PageSectionMeta>
  22. <PageSectionContent>
  23. <Alert variant="destructive">
  24. <CriticalIcon />
  25. <AlertTitle>Request for account deletion</AlertTitle>
  26. <AlertDescription>
  27. Deleting your account is permanent and cannot be undone. Your data will be deleted
  28. within 30 days, but we may retain some metadata and logs for longer where required or
  29. permitted by law.
  30. </AlertDescription>
  31. <AlertDescription className="mt-3">
  32. <DeleteAccountButton />
  33. </AlertDescription>
  34. </Alert>
  35. </PageSectionContent>
  36. </PageSection>
  37. )
  38. }