diff --git a/src/components/sections/SeasonalRetreatCampaignsSection.tsx b/src/components/sections/SeasonalRetreatCampaignsSection.tsx new file mode 100644 index 0000000..2ace3c7 --- /dev/null +++ b/src/components/sections/SeasonalRetreatCampaignsSection.tsx @@ -0,0 +1,46 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import Button from '@/components/ui/Button' +import { Card, CardContent, CardFooter, CardHeader, CardTitle } from '@/components/ui/Card' + +export default function SeasonalRetreatCampaignsSection() { + const { items, loading } = useEmDashContent('campaigns') + + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+

Seasonal Retreat Campaigns

+

Time-limited offers for unforgettable experiences

+
+ {items.map((item) => { + const d = item.data as { title?: string; headline?: string; body?: string; cta_text?: string; image?: string } + return ( + + {d.image && ( +
+ {d.title +
+ )} + + {d.headline && {d.headline}} + {d.title} + + + {d.body &&

{d.body}

} +
+ + + +
+ ) + })} +
+
+
+ ) +} \ No newline at end of file