interface ReferenceMediaProps {
    boxStyle?: SxProps<Theme>;
    className?: string;
    links: LinkItemProps[];
    media: { type: "video" | "image"; url: string }[];
}

Properties

boxStyle?: SxProps<Theme>

Optional style Box for custom styling.

className?: string

Optional class name for custom styling.

links: LinkItemProps[]

Array of link items, each containing a URL, text, and optional icon.

[
{ url: 'https://example.com', text: 'Example Link', icon: <SomeIcon /> },
{ url: 'https://another-example.com', text: 'Another Link' }
]

Each link item can have a URL, text, and an optional icon. The URL is the destination when the link is clicked.

[]
media: { type: "video" | "image"; url: string }[]

Array of media objects, each containing a type and URL.

[
{ type: 'image', url: 'https://example.com/image.jpg' },
{ type: 'video', url: 'https://example.com/video.mp4' }
]

The type can be either 'image' or 'video', and the URL is the source of the media. The media array can contain multiple objects, allowing for a mix of images and videos.

[]