import { DownloadOutlined } from '@ant-design/icons'; import { Button, Tag } from 'antd'; const FileCard = ({ file, isSelected, onClick }) => { const fileName = file['File Name']; const extensionType = fileName.split('.').pop(); const isRequired = file['Is Required']; const isReviewd = file['Is Reviewed']; return (
{file['Doc Type'].toUpperCase()}
{fileName ? fileName.substring(0, 25).replace('temp_', '') : fileName}{' '} ({extensionType})