feat(SW-96): Ship reusable desktop lightbox

This commit is contained in:
Chuma McPhoy
2024-08-20 08:07:21 +02:00
parent 4274bdc220
commit 59615cef94
8 changed files with 937 additions and 17 deletions
@@ -0,0 +1,26 @@
export interface ImageItem {
url: string
alt: string
}
export interface DesktopLightboxProps {
images: ImageItem[]
children: React.ReactNode
}
export interface GalleryProps {
images: ImageItem[]
onClose: () => void
onSelectImage: (image: ImageItem) => void
onImageClick: () => void
selectedImage: ImageItem | null
}
export interface FullViewProps {
image: ImageItem
onClose: () => void
onNext: () => void
onPrev: () => void
currentIndex: number
totalImages: number
}