Props for the AudioGallery component.

interface AudioGalleryProps {
    audios: MediumProps[];
    currentIndex: number;
    handleCurrentIndex: (number: number) => void;
    handleDuration: (duration: null | string) => void;
}

Properties

audios: MediumProps[]

List of audio objects to render.

currentIndex: number

Index of the currently selected audio.

handleCurrentIndex: (number: number) => void

Callback to update the currently selected index.

handleDuration: (duration: null | string) => void

Callback to update the audio duration string when available.