import { motion } from 'framer-motion'; import { ArrowRight } from 'lucide-react'; import { useTranslation } from 'react-i18next'; interface WorkflowStep { number: string; title: string; } const Workflow = () => { const { t } = useTranslation(); const getWorkflowSteps = () => { try { const steps = t('pages.about.workflow.steps', { returnObjects: true }); return Array.isArray(steps) ? steps : []; } catch (error) { console.error('Error loading workflow steps:', error); return []; } }; const workflowSteps = getWorkflowSteps(); const totalSteps = workflowSteps.length; const containerVariants = { hidden: {}, visible: { transition: { staggerChildren: 0.1, }, }, }; const itemVariants = { hidden: { opacity: 0, x: -20 }, visible: { opacity: 1, x: 0 }, }; return (
{/* Section Title and Description */}

{t('pages.about.workflow.title')}

{t('pages.about.workflow.description')}

{/* Workflow Steps */} {workflowSteps.map((step: WorkflowStep) => (
{step.number}

{step.title}

{/* Line Indicator */}
); }; export default Workflow;