import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogSection, DialogTitle, } from 'ui' import { AdditionalMonthlySpend } from './AdditionalMonthlySpend' import { NewProjectPrice } from './RestoreToNewProject.utils' import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization' import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject' interface ConfirmRestoreDialogProps { open: boolean onOpenChange: (value: boolean) => void onSelectContinue: () => void additionalMonthlySpend: NewProjectPrice } export const ConfirmRestoreDialog = ({ open, onOpenChange, onSelectContinue, additionalMonthlySpend, }: ConfirmRestoreDialogProps) => { const { data: project } = useSelectedProjectQuery() const { data: organization } = useSelectedOrganizationQuery() return ( Confirm restore to a new project This process will create a new project and restore your database to it.
  • Project organization will stay the same: {organization?.name}
  • Project region will stay the same: {project?.region || ''}
  • What will be transferred?
    • Database schema (tables, views, procedures)
    • All data and indexes
    • Database roles, permissions and users
  • What needs manual reconfiguration?
    • Storage objects & settings
    • Edge Functions
    • Auth settings & API keys
    • Database extensions and settings
    • Read replicas
) }