import React from "react"; import Image from "next/image"; import { useTranslation } from "next-i18next"; const OurApproachSection = ({ cmClass }) => { const { t } = useTranslation("ourApproach"); const approaches = t("ourApproach", { returnObjects: true }) || []; return (
{t("page") && (
{t("page.subtitle")}

{t("page.title")}

)} {approaches.map((item, index) => { const isEven = index % 2 !== 0; const sectionStyle = { backgroundColor: index % 2 === 0 ? '#fbfbfbff' : '#e8ebf5', color: index % 2 === 0 ? '#ffffffff' : '#fff', }; return (
{item.authorTitle}

{item.title}

{item.para}

{item.description && (
)}
{item.title}
); })}
); }; export default OurApproachSection;