import { Image } from '@nextui-org/image' import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area' import { cn } from '@/lib/utils' import { useState } from 'react' import Lightbox from 'yet-another-react-lightbox' import Zoom from 'yet-another-react-lightbox/plugins/zoom' import NsfwOverlay from '../NsfwOverlay' export default function ImageGallery({ className, images, isNsfw = false, size = 'normal' }: { className?: string images: string[] isNsfw?: boolean size?: 'normal' | 'small' }) { const [index, setIndex] = useState(-1) const handlePhotoClick = (event: React.MouseEvent, current: number) => { event.preventDefault() setIndex(current) } return (