import { AboutData } from '../../about/types'; interface AboutStatsProps { data: AboutData['stats']; } const AboutStats = ({ data }: AboutStatsProps) => { return (
img
Did You Know

Our Achievements in Numbers

{data.map((stat, index) => { // Helper to extract number and suffix from value const valueStr = String(stat.value); const numericMatch = valueStr.match(/(\d+)/); const numericValue = numericMatch ? numericMatch[0] : "0"; const suffix = valueStr.replace(numericValue, ""); return (

00{suffix}

{stat.label}
); })}
); }; export default AboutStats;