From 7d12a8f5425b6e9d8b26876c9800973998717ef2 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Fri, 31 Jul 2026 14:12:32 +0000 Subject: [PATCH] Deploy --- .../sections/iKhayaOffersSection.tsx | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/components/sections/iKhayaOffersSection.tsx diff --git a/src/components/sections/iKhayaOffersSection.tsx b/src/components/sections/iKhayaOffersSection.tsx new file mode 100644 index 0000000..0c01959 --- /dev/null +++ b/src/components/sections/iKhayaOffersSection.tsx @@ -0,0 +1,30 @@ +'use client' +import Image from 'next/image' +import { useVulaContent } from '@/hooks/useVulaContent' + +export default function iKhayaOffersSection() { + const { items, loading } = useVulaContent('campaigns') + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+ {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.title}

} + {d.headline &&

{d.headline}

} + {d.body &&

{d.body}

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