{file.fileName.indexOf('.docx') > -1 ?
{ download(file.fileId) }}
style={{ cursor: 'pointer' }}
>
:
file.fileName.indexOf('.pdf') > -1 ?
{ viewPdf(file?.fileId) }}
style={{ cursor: 'pointer' }}
>
:
file.fileName.indexOf('.zip') > -1 ?
{ download(file?.fileId) }}
style={{ cursor: 'pointer' }}
>
:
file.fileName.indexOf('.xlsx') > -1 ?
{ download(file?.fileId) }}
style={{ cursor: 'pointer' }}
>
:
}
{file.fileName}