'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 (
From Our Roastery
{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}
}
)
})}
)
}