DocSpace-client/packages/common/components/MediaViewer/MediaViewer.props.ts
2023-02-13 13:46:50 +05:00

46 lines
1.1 KiB
TypeScript

import { IFile, NumberOrString, PlaylistType, TranslationType } from "./types";
export interface MediaViewerProps {
t: TranslationType;
userAccess: boolean;
currentFileId: NumberOrString;
visible: boolean;
extsMediaPreviewed: string[];
extsImagePreviewed: string[];
deleteDialogVisible: boolean;
errorLabel: string;
isPreviewFile: boolean;
files: IFile[];
playlist: PlaylistType[];
setBufferSelection: Function;
archiveRoomsId: number;
playlistPos: number;
getIcon: (size: number, ext: string, ...arg: any) => string;
onClose: VoidFunction;
onError?: VoidFunction;
onEmptyPlaylistError: VoidFunction;
onDelete: (id: NumberOrString) => void;
onDownload: (id: NumberOrString) => void;
onChangeUrl: (id: NumberOrString) => void;
onMoveAction: VoidFunction;
onCopyAction: VoidFunction;
onClickRename: (file: IFile) => void;
onShowInfoPanel: (file: IFile) => void;
onDuplicate: (file: IFile, t: TranslationType) => void;
onClickDelete: (file: IFile, t: TranslationType) => void;
onClickDownload: (file: IFile, t: TranslationType) => void;
nextMedia: VoidFunction;
prevMedia: VoidFunction;
}