Props for the ImageGallery component.

interface ImageGalleryProps {
    handleCurrentIndex: (number: number) => void;
    images: MediumProps[];
    initialIndex?: number;
    mainSwiperStyle?: CSSProperties;
    thumbSwiperStyle?: CSSProperties;
}

Properties

handleCurrentIndex: (number: number) => void

Callback function that receives the current index when the slide changes.

images: MediumProps[]

Array of images to display, each with a URL and an ID.

initialIndex?: number

The initial index of the image to display.

0
mainSwiperStyle?: CSSProperties
thumbSwiperStyle?: CSSProperties