From 47f0a4a35bc82e25d1f03dd1a8ae1c612f301a43 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:47:39 +0000 Subject: [PATCH] Deploy --- .../sections/RoyalRetreatCampaignSection.tsx | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/components/sections/RoyalRetreatCampaignSection.tsx 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