'use client' import { useEmDashContent } from '@/hooks/useEmDashContent' import Image from 'next/image' import Button from '@/components/ui/Button' export default function RoyalRetreatCampaignSection() { const { items, loading } = useEmDashContent('campaigns') if (loading) { return (
) } if (items.length === 0) return null // Show only the first campaign for spotlight const campaign = items[0] const d = campaign.data as { title?: string; headline?: string; body?: string; cta_text?: string; image?: string } if (!d.image) return null return (
{d.headline
{d.headline && (

{d.headline}

)} {d.body && (

{d.body}

)} {d.cta_text && ( )}
) }