diff --git a/src/app/(app)/stls/_components/package-files-drawer.tsx b/src/app/(app)/stls/_components/package-files-drawer.tsx index cf434a9..71230b2 100644 --- a/src/app/(app)/stls/_components/package-files-drawer.tsx +++ b/src/app/(app)/stls/_components/package-files-drawer.tsx @@ -13,6 +13,7 @@ import { Upload, ImagePlus, Images, + Maximize2, } from "lucide-react"; import { Dialog, @@ -30,6 +31,7 @@ import type { PackageRow } from "./package-columns"; import { SendToTelegramButton } from "./send-to-telegram-button"; import { uploadPackagePreview } from "../actions"; import { ArchivePreviewPicker } from "./archive-preview-picker"; +import { ImageLightbox } from "./image-lightbox"; interface FileItem { id: string; @@ -264,6 +266,7 @@ export function PackageFilesDrawer({ pkg, open, onOpenChange, highlightTerm }: P const [uploading, setUploading] = useState(false); const [localPreviewUrl, setLocalPreviewUrl] = useState(null); const [showPreviewPicker, setShowPreviewPicker] = useState(false); + const [previewLightboxOpen, setPreviewLightboxOpen] = useState(false); const fileInputRef = useRef(null); const handlePreviewUpload = useCallback( @@ -384,9 +387,8 @@ export function PackageFilesDrawer({ pkg, open, onOpenChange, highlightTerm }: P ) : ( @@ -582,6 +580,11 @@ export function PackageFilesDrawer({ pkg, open, onOpenChange, highlightTerm }: P }} /> )} + ); }