DiskManagementPanelForm.tsx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { useParams } from 'common'
  2. import Link from 'next/link'
  3. import { Button } from 'ui'
  4. import {
  5. PageSection,
  6. PageSectionContent,
  7. PageSectionMeta,
  8. PageSectionSummary,
  9. PageSectionTitle,
  10. } from 'ui-patterns'
  11. import { Admonition } from 'ui-patterns/admonition'
  12. import { DocsButton } from '../../ui/DocsButton'
  13. import { DOCS_URL } from '@/lib/constants'
  14. // [Joshen] Only used for non AWS projects
  15. export function DiskManagementPanelForm() {
  16. const { ref: projectRef } = useParams()
  17. return (
  18. <PageSection id="disk-management">
  19. <PageSectionMeta>
  20. <PageSectionSummary>
  21. <PageSectionTitle>Disk management</PageSectionTitle>
  22. </PageSectionSummary>
  23. <DocsButton href={`${DOCS_URL}/guides/platform/database-size#disk-management`} />
  24. </PageSectionMeta>
  25. <PageSectionContent>
  26. <Admonition
  27. type="default"
  28. layout="responsive"
  29. title="Disk Management has moved"
  30. description="Disk configuration is now managed alongside Project Compute on the new Compute and Disk page."
  31. actions={
  32. <Button type="default" asChild>
  33. <Link href={`/project/${projectRef}/settings/compute-and-disk`}>
  34. Go to Compute and Disk
  35. </Link>
  36. </Button>
  37. }
  38. />
  39. </PageSectionContent>
  40. </PageSection>
  41. )
  42. }