import React from 'react'; import Typography from '../ui/Typography'; import { CheckCircle, Clock, AlertCircle } from 'lucide-react'; import { cn } from '../../lib/utils'; import { Progress } from '../ui/Progress'; interface ProgressBarProps { message: string; percent: number; stage?: string; } /** * ProgressBar component for profile registration progress * Follows the moonscape pattern for progress tracking */ export function ProgressBar({ message, percent, stage }: ProgressBarProps) { if (!message && percent === 0) { return null; } const getStageIcon = () => { if (percent === 100) { return ; } else if (stage === 'failed' || stage === 'error') { return ; } else { return ; } }; const getProgressVariant = () => { if (percent === 100) return 'success'; if (stage === 'failed' || stage === 'error') return 'error'; return 'purple-orange'; }; return (
{getStageIcon()} Registration Progress
{message} {percent}%
{stage && ( Stage: {stage.replace('_', ' ')} )}
); }