DiskTypeRecommendationSection() — supabase Function Reference
Architecture documentation for the DiskTypeRecommendationSection() function in DiskTypeRecommendationSection.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/DiskManagement/ui/DiskTypeRecommendationSection.tsx lines 9–42
export function DiskTypeRecommendationSection({
actions,
form,
}: {
actions?: ReactNode
form: UseFormReturn<DiskStorageSchemaType>
}) {
const { watch } = form
const totalSize = watch('totalSize')
const storageType = watch('storageType')
const isVisible = storageType === DiskType.GP3 && totalSize > DISK_LIMITS[DiskType.GP3].maxStorage
const io2Option = DISK_TYPE_OPTIONS.find((option) => option.type === DiskType.IO2)
return (
<AnimatePresence initial={false}>
{isVisible && (
<motion.div
initial={{ opacity: 0, height: 0 }}
animate={{ opacity: 1, height: 'auto' }}
exit={{ opacity: 0, height: 0 }}
transition={{ duration: 0.15 }}
>
<Admonition
type="default"
title={`You will need to use ${io2Option?.name} to use a larger Disk size`}
>
<div className="flex flex-col gap-2">{actions && <div>{actions}</div>}</div>
</Admonition>
</motion.div>
)}
</AnimatePresence>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free