Files
supabase/apps/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectPanel.tsx
Ivan Vasilov 436bdb10ae chore: Move the studio app to apps/studio (#18915)
* Move all studio files from /studio to /apps/studio.

* Move studio specific prettier ignores.

* Fix the ui references from studio.

* Fix the css imports.

* Fix all package.json issues.

* Fix the prettier setup for the studio app.

* Add .turbo folder to prettierignore.

* Fix the github workflows.
2023-11-15 12:38:55 +01:00

36 lines
1002 B
TypeScript

import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { FormHeader } from 'components/ui/Forms'
import Panel from 'components/ui/Panel'
import { Alert } from 'ui'
import DeleteProjectButton from './DeleteProjectButton'
const DeleteProjectPanel = () => {
const { project } = useProjectContext()
if (project === undefined) return null
return (
<section id="delete-project">
<FormHeader title="Delete Project" description="" />
<Panel>
<Panel.Content>
<Alert
variant="danger"
withIcon
title="Deleting this project will also remove your database."
>
<div>
<p className="mb-4 block">
Make sure you have made a backup if you want to keep your data.
</p>
<DeleteProjectButton />
</div>
</Alert>
</Panel.Content>
</Panel>
</section>
)
}
export default DeleteProjectPanel