+
+
+
+ {files.length > 0
+ ? `Found ${files.length} log file${files.length !== 1 ? "s" : ""}`
+ : loadingListFiles
+ ? "Searching for logs..."
+ : "No log files found"}
+
+ {logPath && files.length > 0 && (
+
+ Location: {logPath}
+
+ )}
+
+
+
+
+ {isReadingFile && readFileProgress && (
+
+
+ Downloading: {selectedLog?.name}
+
+
+ {readFileProgress.bytes_downloaded.toLocaleString()} /{" "}
+ {readFileProgress.total_bytes.toLocaleString()} bytes
+
+
+
+ {readFileProgress.percentage}% complete
+
+
+ )}
+
+
+
+
+
+ {files.length > 0 ? (
+
+ {files.map((log, idx) => (
+
handleLogClick(log)}
+ >
+
+ {log.name}
+
+
+ {readableBytes(log.size_b)}
+
+
+
+
+ ))}
+
+ ) : (
+ !loadingListFiles && (
+
+ No log files found
+
+ )
+ )}
+
+
+
+