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 && ( + + )} +
+
+ ) + })} +
+
+
+ ) +}