// app/components/PhotoGallery.tsx 'use client'; import { Gallery, Item } from 'react-photoswipe-gallery'; import 'photoswipe/dist/photoswipe.css'; import Image from 'next/image'; interface GalleryImage { src: string; width: number; height: number; name: string; } export default function PhotoGallery({ images }: { images: GalleryImage[] }) { return (
{images.map((img, index) => { const isHorizontal = img.width > img.height; return (
{({ ref, open }) => (
} onClick={open} className="w-full h-full relative block min-h-75" > {/* Outer Frame - Light border in light mode, Dark in dark mode */}
{/* Inner Hover Frame */}
{`Photo
)}
); })}
); }