Props for the Header component.

interface HeaderProps {
    currentIndex?: number;
    imageLength?: number;
    onClose: VoidFunction;
}

Properties

currentIndex?: number

The current index of the displayed image (0-based).

imageLength?: number

The total number of images.

onClose: VoidFunction

Callback function to close the header (typically closes the modal/gallery).