import React, { useState } from 'react'; import Lightbox from './Lightbox.jsx'; // Assuming Lightbox component will be created export default function ImageGallery({ images }) { const [isOpen, setIsOpen] = useState(false); const [currentImageIndex, setCurrentImageIndex] = useState(0); const openLightbox = (index) => { setCurrentImageIndex(index); setIsOpen(true); }; const closeLightbox = () => { setIsOpen(false); }; const goToNext = () => { setCurrentImageIndex((prevIndex) => (prevIndex + 1) % images.length); }; const goToPrev = () => { setCurrentImageIndex((prevIndex) => (prevIndex - 1 + images.length) % images.length); }; return (