From cc0c9535271c9be13083334254117c129cfe5745 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sat, 1 Aug 2026 16:26:32 +0000 Subject: [PATCH] Deploy --- .../sections/AmacampaignsSection.tsx | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 src/components/sections/AmacampaignsSection.tsx diff --git a/src/components/sections/AmacampaignsSection.tsx b/src/components/sections/AmacampaignsSection.tsx new file mode 100644 index 0000000..d6630df --- /dev/null +++ b/src/components/sections/AmacampaignsSection.tsx @@ -0,0 +1,86 @@ +'use client' + +import { useVulaContent } from '@/hooks/useVulaContent' +import Button from '@/components/ui/Button' +import Image from 'next/image' + +export default function AmacampaignsSection() { + const { items, loading } = useVulaContent('campaigns') + if (loading) { + return ( +
+
+
+ ) + } + if (items.length === 0) return null + + return ( +
+
+

+ Amacampaigns +

+
+ {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.title ?? d.headline ?? ''} +

+ {d.headline && d.title ? ( +

+ {d.headline} +

+ ) : null} + {d.body && ( +

+ {d.body} +

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