Props for the ImageModalGallery component.

interface ImageGalleryProps {
    images: MediumProps[];
    initialIndex: number;
    mode?: "light" | "dark";
    onClose: VoidFunction;
    open: boolean;
}

Properties

images: MediumProps[]

Array of image objects with id and URL.

initialIndex: number

The initial index to display when the gallery opens.

mode?: "light" | "dark"

Theme mode.

onClose: VoidFunction

Callback function to close the modal.

open: boolean

Whether the modal gallery is open.