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