import ButtonGradientPrimary from '@/components/button-gradient-primary'; import { getPageSection, getPropertyArray } from '@/lib/page'; import { cn } from '@/lib/utils'; import { IntroPageProps } from '@/types/page'; import { Link, usePage } from '@inertiajs/react'; import Section from '../section'; const Hero = () => { const { props } = usePage(); const heroSection = getPageSection(props.page, 'hero'); return (
{/* Left Content */}

{heroSection?.title}

{heroSection?.sub_title}

{heroSection?.description}

{heroSection?.properties?.button_text && ( {heroSection?.properties?.button_text} )}
{getPropertyArray(heroSection).map((stat, index) => (
{stat.value}

{stat.label}

))}
{/* Right Image */}
Student learning online
); }; export default Hero;