DocSpace-buildtools/packages/common/components/MediaViewer/MediaViewer.props.ts

46 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-02-07 17:09:48 +00:00
import { IFile, NumberOrString, PlaylistType, TranslationType } from "./types";
export interface MediaViewerProps {
2023-02-10 10:04:57 +00:00
t: TranslationType;
2023-02-07 17:09:48 +00:00
2023-02-10 10:04:57 +00:00
userAccess: boolean;
currentFileId: NumberOrString;
2023-02-10 10:04:57 +00:00
visible: boolean;
2023-02-10 10:04:57 +00:00
extsMediaPreviewed: string[];
extsImagePreviewed: string[];
2023-02-10 10:04:57 +00:00
deleteDialogVisible: boolean;
errorLabel: string;
isPreviewFile: boolean;
2023-02-10 10:04:57 +00:00
files: IFile[];
2023-02-10 10:04:57 +00:00
playlist: PlaylistType[];
2023-02-10 10:04:57 +00:00
setBufferSelection: Function;
archiveRoomsId: number;
2023-02-10 10:04:57 +00:00
playlistPos: number;
getIcon: (size: number, ext: string, ...arg: any) => string;
2023-02-10 10:04:57 +00:00
onClose: VoidFunction;
onError?: VoidFunction;
onEmptyPlaylistError: VoidFunction;
onDelete: (id: NumberOrString) => void;
onDownload: (id: NumberOrString) => void;
onChangeUrl: (id: NumberOrString) => void;
2023-02-07 17:09:48 +00:00
2023-02-10 10:04:57 +00:00
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;
2023-02-08 14:21:14 +00:00
2023-02-10 10:04:57 +00:00
nextMedia: VoidFunction;
prevMedia: VoidFunction;
}