import ConfirmDialog, { ConfirmDialogProps, } from 'components/shared/ConfirmDialog'; import { Deployment, Domain } from 'gql-client'; import DeploymentDialogBodyCard from 'components/projects/project/deployments/DeploymentDialogBodyCard'; import { Button } from 'components/shared/Button'; import { ChevronDoubleDownIcon, LinkChainIcon, } from 'components/shared/CustomIcon'; import { TagProps } from 'components/shared/Tag'; import { ArrowRightCircleFilledIcon, LoadingIcon, } from 'components/shared/CustomIcon'; interface ChangeStateToProductionDialogProps extends ConfirmDialogProps { deployment: Deployment; newDeployment?: Deployment; domains: Domain[]; isConfirmButtonLoading?: boolean; } export const ChangeStateToProductionDialog = ({ deployment, newDeployment, domains, open, handleCancel, handleConfirm, isConfirmButtonLoading, ...props }: ChangeStateToProductionDialogProps) => { const currentChip = { value: 'Live Deployment', type: 'positive' as TagProps['type'], }; const newChip = { value: 'New Deployment', type: 'attention' as TagProps['type'], }; return ( ) : ( ), }} >

Upon confirmation, this deployment will be changed to production.

{newDeployment && ( <>
{Array.from({ length: 7 }).map((_, index) => ( ))}
)}

The new deployment will be associated with these domains:

{domains.length > 0 && domains.map((value) => { return ( ); })}
); };