import { SupportCategories } from '@supabase/shared-types/out/constants' import { Alert, AlertDescription, AlertTitle, Button } from 'ui' import type { PitrAlertState } from './Addons.utils' import { SupportLink } from '@/components/interfaces/Support/SupportLink' import { ButtonTooltip } from '@/components/ui/ButtonTooltip' interface PitrAlertProps { state: PitrAlertState projectRef?: string disabledReason?: string onEnablePitr: () => void } export const PitrAlert = ({ state, projectRef, disabledReason, onEnablePitr }: PitrAlertProps) => { if (state === 'hipaa') { return ( PITR cannot be changed with HIPAA All projects should have PITR enabled by default and cannot be changed with HIPAA enabled. ) } if (state === 'hipaa-non-compliant') { return ( Project is not HIPAA compliant Projects with HIPAA enabled must have 28 days of PITR. Enable the 28-day PITR add-on to make this project compliant.
Enable 28-day PITR
) } if (state === 'legacy-project') { return ( Your project is too old to enable PITR

Reach out to us via support if you're interested

) } if (state === 'orioledb') { return ( PITR not supported Point in time recovery is not supported with OrioleDB ) } return null }