@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
10 lines (9 loc) • 398 B
TypeScript
import { CustomFile } from './FileListItem';
export interface FileListProps<T extends CustomFile> {
files: T[];
onDelete?: (file: T) => void;
onClick?: (file: T) => void;
onDownload?: (file: T) => void;
}
declare const FileList: <T extends CustomFile>({ files, onDelete, onClick, onDownload, }: FileListProps<T>) => import("react/jsx-runtime").JSX.Element;
export default FileList;