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

+ Earthy Moments +

+

+ A glimpse into the soul of Masai Suites +

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

+ {d.title} +

+ {d.description && ( +

+ {d.description} +

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