From 0984023b7a2e27d0f6305cbc1aa559dccee7e2a8 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:38:46 +0000 Subject: [PATCH] Deploy --- .../sections/BushveldLodgeGallerySection.tsx | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 src/components/sections/BushveldLodgeGallerySection.tsx diff --git a/src/components/sections/BushveldLodgeGallerySection.tsx b/src/components/sections/BushveldLodgeGallerySection.tsx new file mode 100644 index 0000000..961b777 --- /dev/null +++ b/src/components/sections/BushveldLodgeGallerySection.tsx @@ -0,0 +1,86 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import { useState } from 'react' + +const galleryFields = ["title", "description", 'image'] as const + +export default function BushveldLodgeGallerySection() { + const { items, loading } = useEmDashContent('gallery') + const [lightbox, setLightbox] = useState(null) + + if (loading) { + return ( +
+
+
+ ) + } + if (items.length === 0) return null + + const openLightbox = (i: number) => setLightbox(i) + const closeLightbox = () => setLightbox(null) + + return ( + + ) +} \ No newline at end of file