Props for the Header component.

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

Properties

audioLength: number

Total number of media items in the gallery.

currentIndex: number

Index of the currently active media item.

duration?: null | string

Duration of the current media item in mm:ss format.

onClose: VoidFunction

Callback function to close the modal or view.

title?: string

Title of the current media item (e.g., file name).