diff --git a/src/components/sections/KwaNtofontofoGallerySection.tsx b/src/components/sections/KwaNtofontofoGallerySection.tsx new file mode 100644 index 0000000..35ef5f7 --- /dev/null +++ b/src/components/sections/KwaNtofontofoGallerySection.tsx @@ -0,0 +1,58 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' + +export default function KwaNtofontofoGallerySection() { + const { items, loading } = useEmDashContent('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.title +
+
+

{d.title}

+ {d.description && ( +

{d.description}

+ )} +
+
+ ) + })} +
+
+
+ ) +}