import { getPageSection } from '@/lib/page'; import { cn } from '@/lib/utils'; import Section from '@/pages/intro/partials/section'; import { usePage } from '@inertiajs/react'; import { InnerPageProps } from '..'; const Hero = () => { const { props } = usePage(); const heroSection = getPageSection(props.innerPage, 'hero'); return (
{heroSection?.properties.array.map((item, index) => (
))}
{heroSection?.properties.array.map((item, index) => (

{item.title}

{item.description}

))}
); }; export default Hero;