diff --git a/src/components/sections/RoyalRetreatCampaignSection.tsx b/src/components/sections/RoyalRetreatCampaignSection.tsx new file mode 100644 index 0000000..606b32d --- /dev/null +++ b/src/components/sections/RoyalRetreatCampaignSection.tsx @@ -0,0 +1,64 @@ +'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 && ( + + )} +
+
+
+ ) +} \ No newline at end of file