import React from 'react';
import FileProfile from './FileProfile';
import ImagePreview from './ImagePreview';
export const FileType = (props) => {
    let type = '';
    const { fileType, image, fileName, size, lastModifiedDate } = props;
    switch (fileType) {
        case 'pdf':
            type = (React.createElement(FileProfile, { fileType: fileType, fileName: fileName, size: size, lastModifiedDate: lastModifiedDate }));
            break;
        case 'doc':
            type = (React.createElement(FileProfile, { fileType: fileType, fileName: fileName, size: size, lastModifiedDate: lastModifiedDate }));
            break;
        case 'png':
            type = (React.createElement(FileProfile, { fileType: fileType, fileName: fileName, size: size, lastModifiedDate: lastModifiedDate }, React.createElement(ImagePreview, { image: image })));
            break;
        case 'jpg':
            type = (React.createElement(FileProfile, { fileType: fileType, fileName: fileName, size: size, lastModifiedDate: lastModifiedDate }, React.createElement(ImagePreview, { image: image })));
            break;
        case 'jpeg':
            type = (React.createElement(FileProfile, { fileType: fileType, fileName: fileName, size: size, lastModifiedDate: lastModifiedDate }, React.createElement(ImagePreview, { image: image })));
            break;
        default:
    }
    return type;
};
//# sourceMappingURL=FileType.js.map