import SubscribeInput from '@/components/subscribe-input'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { getPageSection, getPropertyArray } from '@/lib/page'; import { IntroPageProps } from '@/types/page'; import { usePage } from '@inertiajs/react'; import Section from '../section'; const CallToAction = () => { const { props } = usePage(); const ctaSection = getPageSection(props.page, 'call_to_action'); return (

{ctaSection?.title}

{ctaSection?.description}

{getPropertyArray(ctaSection).map((item, index) => ( IM ))}

{ctaSection?.properties?.subscribers}

); }; export default CallToAction;