From 964bd676565b0384dfc7e516bbf6b0a524449808 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sun, 11 Oct 2026 14:20:27 +0000 Subject: [PATCH] Deploy --- .../sections/MadadeniFoodGallerySection.tsx | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 src/components/sections/MadadeniFoodGallerySection.tsx diff --git a/src/components/sections/MadadeniFoodGallerySection.tsx b/src/components/sections/MadadeniFoodGallerySection.tsx new file mode 100644 index 0000000..9eee2a4 --- /dev/null +++ b/src/components/sections/MadadeniFoodGallerySection.tsx @@ -0,0 +1,128 @@ +'use client' + +import { useState } from 'react' +import Image from 'next/image' +import { Flame } from 'lucide-react' +import { useVulaContent } from '@/hooks/useVulaContent' +import Modal from '@/components/ui/Modal' + +type GalleryEntry = { + id: string + title: string + description: string + image: string +} + +export default function MadadeniFoodGallerySection() { + const { items, loading } = useVulaContent('gallery') + const [active, setActive] = useState(null) + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + const gallery: GalleryEntry[] = items.map((item) => { + const d = item.data as { title?: string; description?: string; image?: string } + return { + id: item.id, + title: d.title ?? '', + description: d.description ?? '', + image: d.image ?? '', + } + }) + + return ( + + ) +}