+ {isLoading && (
+
+ )}
+
+ {!isLoading && documents.length === 0 && (
+
+ No documents are available for this tender.
+
+ )}
+
+ {!isLoading && documents.length > 0 && (
+
+ {documents.map((doc) => {
+ const busy =
+ downloadingName === doc.filename ||
+ (isDownloadingAll && downloadingName === doc.filename);
+ return (
+ -
+
+
+ {doc.filename}
+
+
+
+ {doc.document_type}
+
+ {formatFileSize(doc.size)}
+
+ Updated{" "}
+ {unixToDate({
+ unix: doc.last_modified,
+ hasTime: true,
+ })}
+
+
+
+
+
+ );
+ })}
+
+ )}
+