+
+ {d?.title}
+{d?.headline}
+ {d?.body &&{d.body}
} + {d?.cta_text && ( + + + + )} +diff --git a/src/components/sections/CampaignsSection.tsx b/src/components/sections/CampaignsSection.tsx new file mode 100644 index 0000000..7079a9a --- /dev/null +++ b/src/components/sections/CampaignsSection.tsx @@ -0,0 +1,77 @@ +'use client' + +import Image from 'next/image' +import Link from 'next/link' +import Button from '@/components/ui/Button' +import { useVulaContent } from '@/hooks/useVulaContent' + +export default function CampaignsSection() { + const { items, loading } = useVulaContent('campaigns') + + if (loading) { + return ( +
Fresh from KZN co-ops
+{d?.title}
+{d.body}
} + {d?.cta_text && ( + + + + )} +{x.body}
} +