'use client'
import { useEmDashContent } from '@/hooks/useEmDashContent'
import Image from 'next/image'
export default function GallerySection() {
const { items, loading } = useEmDashContent('gallery')
if (loading) return
if (items.length === 0) return null
return (
Visual Diary
Moments at Masai Suites
{items.slice(0, 8).map((item) => {
const d = item.data as { title?: string; description?: string; image?: string }
return (
{d.image ? (
) : (
)}
{d.title && (
{d.title}
)}
)
})}
)
}