import ButtonGradientPrimary from '@/components/button-gradient-primary'; import RatingStars from '@/components/rating-stars'; import { Button } from '@/components/ui/button'; import { Card } from '@/components/ui/card'; import { Dialog, DialogContent, DialogTrigger } from '@/components/ui/dialog'; import VideoPlayer from '@/components/video-player'; import { getPageSection, getPropertyArray } from '@/lib/page'; import { cn } from '@/lib/utils'; import { IntroPageProps } from '@/types/page'; import { Link, usePage } from '@inertiajs/react'; import { Play } from 'lucide-react'; import Section from '../section'; const Hero = () => { const { props } = usePage(); const { page } = props; const heroSection = getPageSection(page, 'hero'); return ( <>

{heroSection?.title}

{heroSection?.description}

{heroSection?.properties?.button_text_1 && ( {heroSection?.properties?.button_text_1} )} {heroSection?.properties?.button_text_2 && ( )}
{heroSection?.properties?.ratings && (

{heroSection?.properties?.ratings}

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

{heroSection?.properties?.subscribers}

)}
{heroSection?.title} {heroSection?.video_url && ( )}
{getPropertyArray(heroSection).map((item, index) => ( ))}
{getPropertyArray(heroSection).map((item, index) => (
))}
); }; export default Hero;