mui-component
Version:
some custom mui components
19 lines (18 loc) • 722 B
TypeScript
import { type ReactNode } from 'react';
import { type PlayerProps } from 'video-react';
import 'video-react/dist/video-react.css';
import type { ModalProps } from '../../feedback';
export interface VideoModalViewerProps extends PlayerProps {
showDownload?: boolean;
trigger: ReactNode;
fileName?: string;
fileSrc: string;
modalProps?: ModalProps;
onFileDownloadStart?: (fileUrl: string, fileName?: string) => void | boolean;
/** 点击文件下载后的回调 */
onFileDownload?: (fileUrl: string, fileName?: string) => void | Promise<void>;
}
export declare const VideoModalViewer: {
(props: VideoModalViewerProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};