import { AnimatePresence, motion } from 'framer-motion' import Link from 'next/link' import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization' import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject' import { AlertDescription_Shadcn_ as AlertDescription, AlertTitle_Shadcn_ as AlertTitle, buttonVariants, cn, } from 'ui' import { Admonition } from 'ui-patterns/admonition' export function SpendCapDisabledSection() { const { data: org } = useSelectedOrganizationQuery() const { data: project } = useSelectedProjectQuery() const isSpendCapEnabled = org?.plan.id !== 'free' && !org?.usage_billing_enabled && project?.cloud_provider !== 'FLY' return ( {isSpendCapEnabled && ( Disable spend cap to manage Disk configuration To access disk management features, you need to disable your spend cap. These features offer more flexibility and control over your database disk size.
Disable spend cap
)}
) }