import React from 'react'; import { useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { Check } from 'lucide-react'; interface StepProgressProps { currentStep: 1 | 2 | 3; theme?: 'light' | 'dark'; } const StepProgress: React.FC = ({ currentStep, theme = 'dark' }) => { const { t } = useTranslation(); const navigate = useNavigate(); const steps = [ { id: 1, path: '/step1', label: t('nav.consulting', 'AI Consulting') }, { id: 2, path: '/step2', label: t('nav.tourism', 'Tourism Ops') }, { id: 3, path: '/step3', label: t('nav.dev', 'Infrastructure') }, ]; const isDark = theme === 'dark'; const textColor = isDark ? 'text-stone-400' : 'text-stone-500'; const activeColor = isDark ? 'text-white' : 'text-black'; const accentColor = currentStep === 1 ? 'text-blue-500' : currentStep === 2 ? 'text-orange-500' : 'text-cyan-400'; const borderColor = isDark ? 'border-stone-800' : 'border-stone-200'; return (
{/* Progress Bar Background */}
{/* Active Progress Line */}
{steps.map((step) => { const isCompleted = currentStep > step.id; const isCurrent = currentStep === step.id; return (
navigate(step.path)} className="flex flex-col items-center cursor-pointer group" >
{isCompleted ? ( ) : ( {step.id} )}
{step.label}
); })}
); }; export default StepProgress;