import { useTranslation } from "react-i18next"; import { cn } from "@/lib/utils" import { Separator } from "../ui/separator"; type DeployProgressProps = { phase?: "check" | "apply" | "deploy"; phaseSuccess?: boolean; }; const DeployProgress = ({ phase, phaseSuccess }: DeployProgressProps) => { const { t } = useTranslation(); let step = 0; if (phase === "check") { step = 1 } else if (phase === "apply") { step = 2 } else if (phase === "deploy") { step = 3 } return (
1 ? "text-green-600" : "", ) }> {t('deploy.progress.check')}
1 ? "bg-green-600" : "", ) } />
2 ? "text-green-600" : "", ) }> {t('deploy.progress.apply')}
2 ? "bg-green-600" : "", ) } />
3 ? "text-green-600" : "", ) }> {t('deploy.progress.deploy')}
) }; export default DeployProgress;