'use client';
import { useState } from "react";
import 'react-image-lightbox/style.css';
import Lightbox from 'react-image-lightbox';
export default function GalleryLightbox({ images }) {
const [isOpen, setIsOpen] = useState(false);
const [photoIndex, setPhotoIndex] = useState(0);
return (
<>
{/* Column 1 */}
{ setPhotoIndex(0); setIsOpen(true); }}
style={{ cursor: "pointer" }}
>
Combos
{/* Column 2 */}
{ setPhotoIndex(1); setIsOpen(true); }}
style={{ cursor: "pointer" }}
>
Milk Shakes
{ setPhotoIndex(2); setIsOpen(true); }}
style={{ cursor: "pointer" }}
>
Poutine
{/* Column 3 */}
{ setPhotoIndex(3); setIsOpen(true); }}
style={{ cursor: "pointer" }}
>
Salads
{ setPhotoIndex(4); setIsOpen(true); }}
style={{ cursor: "pointer" }}
>
Shawarma Wraps
{ setPhotoIndex(5); setIsOpen(true); }}
style={{ cursor: "pointer" }}
>
Dosa
{isOpen && (
setIsOpen(false)}
onMovePrevRequest={() =>
setPhotoIndex((photoIndex + images.length - 1) % images.length)
}
onMoveNextRequest={() =>
setPhotoIndex((photoIndex + 1) % images.length)
}
/>
)}
>
);
}