import { useLanguage } from "@/contexts/language-context"; export default function HowItWorks() { const { t } = useLanguage(); const steps = [ { number: "1", title: t.howItWorks.steps.step1.title, description: t.howItWorks.steps.step1.desc, }, { number: "2", title: t.howItWorks.steps.step2.title, description: t.howItWorks.steps.step2.desc, }, { number: "3", title: t.howItWorks.steps.step3.title, description: t.howItWorks.steps.step3.desc, }, ]; return (

{t.howItWorks.title}

{t.howItWorks.subtitle}

{steps.map((step, index) => (
{step.number}

{step.title}

{step.description}

{index < steps.length - 1 && (
)}
))}
); }