import { Card } from '@/components/ui/card'; import { getPageSection, getPropertyArray } from '@/lib/page'; import { IntroPageProps } from '@/types/page'; import { usePage } from '@inertiajs/react'; import Section from '../section'; const Statistics = () => { const { props } = usePage(); const { customize } = props; const statisticsSection = getPageSection(props.page, 'statistics'); return (
{getPropertyArray(statisticsSection).map((statistic) => (

{statistic.value}

{statistic.label}

))}
); }; export default Statistics;