interface HeaderProps {
    currentIndex?: number;
    duration?: null | string;
    onClose: VoidFunction;
    title?: string;
    videoLength?: number;
}

Properties

currentIndex?: number

The index of the currently selected video (0-based).

duration?: null | string

The duration of the current video in mm:ss format.

onClose: VoidFunction

Callback triggered when the close icon is clicked.

title?: string

Optional title to display above the video duration.

videoLength?: number

Total number of videos in the list.