import { Card } from '@/components/ui/card'; import { getPageSection, getPropertyArray } from '@/lib/page'; import { IntroPageProps } from '@/types/page'; import { usePage } from '@inertiajs/react'; import { DynamicIcon } from 'lucide-react/dynamic'; import Section from '../section'; const Overview = () => { const { props } = usePage(); const overviewSection = getPageSection(props.page, 'overview'); return (

{overviewSection?.title}

{overviewSection?.sub_title}

{overviewSection?.description}

{getPropertyArray(overviewSection).map((stat: any, index: number) => { return (

{stat.count}

{stat.title}

); })}
); }; export default Overview;