import SectionHeader from '@/components/layout/SectionHeader';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card';
import { Container, Flex, Grid, Stack } from '@/components/ui/layout';
import { useTranslation } from '@/hooks/useI18n';
import { themeColors } from '@/lib/theme';
import { Building2, TrendingUp, Users } from 'lucide-react';
import React from 'react';
const StepIcon = React.memo(({ icon }: { icon: React.ReactNode }) => (
));
StepIcon.displayName = 'StepIcon';
const BenefitCard = React.memo(({ title, desc }: { title: string; desc: string }) => (
{title}
));
BenefitCard.displayName = 'BenefitCard';
const Step = React.memo(
({
icon,
title,
text,
children,
isLast = false,
}: {
icon: React.ReactNode;
title: string;
text: string;
children?: React.ReactNode;
isLast?: boolean;
}) => (
{/* Left column: Step icon */}
{/* Vertical connecting line */}
{!isLast && (
)}
{/* Right column: Content */}
{children && {children}
}
)
);
Step.displayName = 'Step';
const HowItWorksSection = () => {
const { t } = useTranslation();
const stepData = [
{
icon: ,
title: t('howItWorksNew.step1.title'),
text: t('howItWorksNew.step1.text'),
},
{
icon: ,
title: t('howItWorksNew.step2.title'),
text: t('howItWorksNew.step2.text'),
},
{
icon: ,
title: t('howItWorksNew.step3.title'),
text: t('howItWorksNew.step3.text'),
children: (
),
},
];
return (
{stepData.map((step, index) => (
{step.children}
))}
);
};
export default React.memo(HowItWorksSection);