Props for the VideoModalGallery component.

interface VideoModalGalleryProps {
    autoPlay?: boolean;
    initialIndex: number;
    mode?: "light" | "dark";
    onClose: VoidFunction;
    open: boolean;
    videos: MediumProps[];
}

Properties

autoPlay?: boolean

Auto Play

initialIndex: number

Index of the video to display initially.

mode?: "light" | "dark"

Theme Mode

onClose: VoidFunction

Function to close the modal.

open: boolean

Whether the modal is open or closed.

videos: MediumProps[]

List of video objects to be displayed in the modal.