Files
supabase/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsx
2025-04-03 16:58:23 +08:00

37 lines
1.0 KiB
TypeScript

import Link from 'next/link'
import { useParams } from 'common'
import { FormHeader } from 'components/ui/Forms/FormHeader'
import { Button } from 'ui'
import { NoticeBar } from './ui/NoticeBar'
// [Joshen] Only used for non AWS projects
export function DiskManagementPanelForm() {
const { ref: projectRef } = useParams()
return (
<div id="disk-management">
<FormHeader
title="Disk Management"
docsUrl="https://supabase.com/docs/guides/platform/database-size#disk-management"
/>
<NoticeBar
visible={true}
type="default"
title="Disk Management has moved"
description="Disk configuration is now managed alongside Project Compute on the new Compute and Disk page."
actions={
<Button type="default" asChild>
<Link
href={`/project/${projectRef}/settings/compute-and-disk`}
className="!no-underline"
>
Go to Compute and Disk
</Link>
</Button>
}
/>
</div>
)
}