'use client'; import { useState } from "react"; import Layout from "@/components/layout/Layout"; import 'react-image-lightbox/style.css'; import Lightbox from 'react-image-lightbox'; export default function GalleryPage() { const images = [ "/assets/images/home/categories/combos.webp", "/assets/images/home/categories/milkshakes.webp", "/assets/images/home/categories/poutine.webp", "/assets/images/home/categories/salads.webp", "/assets/images/home/categories/shawarma.webp", "/assets/images/home/categories/dosa.webp" ]; const [isOpen, setIsOpen] = useState(false); const [photoIndex, setPhotoIndex] = useState(0); return ( {/* Gallery Section Two */} {/* End Gallery Section Two */} {/* Lightbox */} {isOpen && ( setIsOpen(false)} onMovePrevRequest={() => setPhotoIndex((photoIndex + images.length - 1) % images.length) } onMoveNextRequest={() => setPhotoIndex((photoIndex + 1) % images.length) } /> )} ); }