@uppy/dashboard
Version:
Universal UI plugin for Uppy.
32 lines • 1.69 kB
TypeScript
import type { Body, Meta, State, Uppy, UppyFile } from '@uppy/core';
import type { I18n } from '@uppy/utils/lib/Translator';
import { h } from 'preact';
import type { DashboardState } from '../Dashboard.js';
type FileListProps<M extends Meta, B extends Body> = {
id: string;
i18n: I18n;
uppy: Uppy<M, B>;
files: State<M, B>['files'];
resumableUploads: boolean;
hideRetryButton: boolean;
hidePauseResumeButton: boolean;
hideCancelButton: boolean;
showLinkToFileUploadResult: boolean;
showRemoveButtonAfterComplete: boolean;
metaFields: DashboardState<M, B>['metaFields'];
isSingleFile: boolean;
toggleFileCard: (show: boolean, fileId: string) => void;
handleRequestThumbnail: (file: UppyFile<M, B>) => void;
handleCancelThumbnail: (file: UppyFile<M, B>) => void;
recoveredState: State<M, B>['recoveredState'];
individualCancellation: boolean;
itemsPerRow: number;
openFileEditor: (file: UppyFile<M, B>) => void;
canEditFile: (file: UppyFile<M, B>) => boolean;
toggleAddFilesPanel: (show: boolean) => void;
containerWidth: number;
containerHeight: number;
};
export default function FileList<M extends Meta, B extends Body>({ id, i18n, uppy, files, resumableUploads, hideRetryButton, hidePauseResumeButton, hideCancelButton, showLinkToFileUploadResult, showRemoveButtonAfterComplete, metaFields, isSingleFile, toggleFileCard, handleRequestThumbnail, handleCancelThumbnail, recoveredState, individualCancellation, itemsPerRow, openFileEditor, canEditFile, toggleAddFilesPanel, containerWidth, containerHeight, }: FileListProps<M, B>): h.JSX.Element;
export {};
//# sourceMappingURL=FileList.d.ts.map