"use client"; import React from 'react'; import Image from 'next/image'; interface ImpactItem { title: string; description: string; stat1Label: string; stat1Value: string; stat2Label: string; stat2Value: string; image: string; } interface BusinessImpactProps { items: ImpactItem[]; } export const BusinessImpact: React.FC = ({ items }) => { const [activeIndex, setActiveIndex] = React.useState(0); return (
{items.map((item, index) => (
setActiveIndex(index)} >

{item.title}

{activeIndex === index ? item.description : item.description.substring(0, 80) + '...'}

))}
{items.map((item, index) => (
{item.title}
{item.stat1Value}
{item.stat1Label}
{item.stat2Value}
{item.stat2Label}
))}
); };