import { useParams } from 'common' import { ExternalLinkIcon } from 'lucide-react' import { Admonition } from 'ui-patterns/Admonition' import { TimestampInfo } from 'ui-patterns/TimestampInfo' import { DownloadBackupsSection } from './DownloadBackupsSection' import { InlineLink } from '@/components/ui/InlineLink' import { useProjectPauseStatusQuery } from '@/data/projects/project-pause-status-query' import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject' import { DOCS_URL, PROJECT_STATUS } from '@/lib/constants' import { formatRestoreWindow } from '@/lib/helpers' export const PauseDisabledState = () => { const { ref } = useParams() const { data: project } = useSelectedProjectQuery() const { data: pauseStatus } = useProjectPauseStatusQuery( { ref }, { enabled: project?.status === PROJECT_STATUS.INACTIVE } ) return ( <>

This project has been paused for over{' '} {formatRestoreWindow(pauseStatus?.max_days_till_restore_disabled ?? 365)} {' '} and cannot be restored through the dashboard. However, your data remains intact and can be downloaded as a backup.

{!!pauseStatus?.last_paused_on && (

Project last paused on{' '}

)}

Recovery options:

) }