Files
supabase/apps/studio/components/interfaces/Account/Preferences/AccountDeletion.tsx
28e4473953 Update account/me page components (#41193)
* update account me page

* copy

* Update apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

* Update apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

* Update apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

* fixes

* fix sizes

* Smol fix

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-12-12 17:32:38 +08:00

40 lines
1.3 KiB
TypeScript

import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, CriticalIcon } from 'ui'
import {
PageSection,
PageSectionContent,
PageSectionDescription,
PageSectionMeta,
PageSectionSummary,
PageSectionTitle,
} from 'ui-patterns/PageSection'
import { DeleteAccountButton } from './DeleteAccountButton'
export const AccountDeletion = () => {
return (
<PageSection>
<PageSectionMeta>
<PageSectionSummary>
<PageSectionTitle>Danger zone</PageSectionTitle>
<PageSectionDescription>
Permanently delete your Supabase account and data.
</PageSectionDescription>
</PageSectionSummary>
</PageSectionMeta>
<PageSectionContent>
<Alert_Shadcn_ variant="destructive">
<CriticalIcon />
<AlertTitle_Shadcn_>Request for account deletion</AlertTitle_Shadcn_>
<AlertDescription_Shadcn_>
Deleting your account is permanent and cannot be undone. Your data will be deleted
within 30 days, but we may retain some metadata and logs for longer where required or
permitted by law.
</AlertDescription_Shadcn_>
<AlertDescription_Shadcn_ className="mt-3">
<DeleteAccountButton />
</AlertDescription_Shadcn_>
</Alert_Shadcn_>
</PageSectionContent>
</PageSection>
)
}