feat(SW-96): Ship reusable desktop lightbox
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user