import ButtonGradientPrimary from '@/components/button-gradient-primary'; import RatingStars from '@/components/rating-stars'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; 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 (

{heroSection?.title}

{heroSection?.sub_title}

{heroSection?.description}

{heroSection?.properties?.button_text && ( {heroSection?.properties?.button_text} )}
{getPropertyArray(heroSection).map((item, index) => ( IM ))}
{heroSection?.properties?.ratings && (

{heroSection?.properties?.ratings}

)} {heroSection?.properties?.subscribers &&

{heroSection?.properties?.subscribers}

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