interface HeaderProps {
    currentIndex: number;
    currentTab: MediaTab;
    duration: null | string;
    onClose: VoidFunction;
    title: string;
}

Properties

currentIndex: number

Index of the currently active media item.

currentTab: MediaTab

Current media tab type (e.g., 'Images', 'Videos', etc.).

duration: null | string

Duration string (formatted as mm:ss) or null if unknown.

onClose: VoidFunction

Close function.

title: string

The title of the media item, shown in the header.