diff --git a/src/components/sections/UmuziGallerySection.tsx b/src/components/sections/UmuziGallerySection.tsx new file mode 100644 index 0000000..f94e1d4 --- /dev/null +++ b/src/components/sections/UmuziGallerySection.tsx @@ -0,0 +1,34 @@ +'use client' +import Image from 'next/image' +import { useVulaContent } from '@/hooks/useVulaContent' + +export default function UmuziGallerySection() { + const { items, loading } = useVulaContent('gallery') + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+
+

Gallery

+
+
+ {items.map((item) => { + const d = item.data as { title?: string; description?: string; image?: string } + return d.image ? ( +
+ {d.title + {d.title && ( +
+

{d.title}

+
+ )} +
+ ) : null + })} +
+
+
+ ) +}