import { Card } from '@/components/ui/card'; import { getPageSection, getPropertyArray } from '@/lib/page'; import { cn } from '@/lib/utils'; import { IntroPageProps } from '@/types/page'; import { usePage } from '@inertiajs/react'; import { DynamicIcon } from 'lucide-react/dynamic'; import Section from '../section'; import Partners from './partners'; const Overview = () => { const { props } = usePage(); const overviewSection = getPageSection(props.page, 'overview'); const array = getPropertyArray(overviewSection); const firstStat = array[0] ?? null; const secondStat = array[1] ?? null; const thirdStat = array[2] ?? null; return (
{/* Left side - Content */}

{overviewSection?.title}

{overviewSection?.description}

{/* Right side - Stats Grid */}
{firstStat && (

{firstStat.count}

{firstStat.title}

)}
{secondStat && (

{secondStat.count}

{secondStat.title}

)} {thirdStat && (

{thirdStat.count}

{thirdStat.title}

)}
); }; export default Overview;