diff --git a/src/components/sections/NdlovuHeritageHeroSection.tsx b/src/components/sections/NdlovuHeritageHeroSection.tsx new file mode 100644 index 0000000..1acc97c --- /dev/null +++ b/src/components/sections/NdlovuHeritageHeroSection.tsx @@ -0,0 +1,39 @@ +'use client' + +import { useVulaContent } from '@/hooks/useVulaContent' +import Image from 'next/image' +import Button from '@/components/ui/Button' +import Link from 'next/link' + +export default function NdlovuHeritageHeroSection() { + const { items, loading } = useVulaContent('hero_banners') + + if (loading) return
+ if (items.length === 0) return null + + return ( +
+ {items.map((item) => { + const d = item.data as { title?: string; subtitle?: string; cta_text?: string; cta_url?: string; image?: string } + return ( +
+
+

{d.title}

+

{d.subtitle}

+ {d.cta_text && d.cta_url && ( + + + + )} +
+
+ {d.image && ( + {d.title + )} +
+
+ ) + })} +
+ ) +} \ No newline at end of file