import * as React from 'react'; import { FileInfo } from '../../models'; import { FileItem } from './FileItem'; import { VsLabel } from './VscodeComponents'; export interface IFileListProps { folderName: string; files: FileInfo[]; totalFiles: number; } const FileList: React.FunctionComponent = ({files, folderName, totalFiles}: React.PropsWithChildren) => { if (!files || files.length === 0) { return null; } return (
{folderName} - file{files.length === 1 ? '' : 's'}: {totalFiles}
    { (files && files.length > 0) && files.map(file => ( )) }
); }; FileList.displayName = 'FileList'; export { FileList };