-
-
- {getRiskLabel(scan.risk)}
-
- {formatRelativeTime(scan.timestamp)}
-
-
{truncateAddress(scan.address, 8, 6)}
+ scans.value.map((scan) => {
+ const key = scanKey(scan);
+ const isExpanded = expandedKey.value === key;
+ const hostname = hostnameFromUrl(scan.url);
+ const threats = scan.threats?.filter(Boolean) ?? [];
+ return (
+
+
+
+ {isExpanded && (
+
+
+ - Address
+ - {scan.address}
+
+ - Seen
+ - {formatDate(scan.timestamp)}
+
+ {hostname && (
+ <>
+ - Site
+ - {hostname}
+ >
+ )}
+
+ - Status
+ -
+
+
+ {scan.blocked ? 'Blocked' : 'Allowed'}
+
+
+
+ {threats.length > 0 && (
+ <>
+ - Threats
+ -
+
+ {threats.map((t) => (
+
+ {t.toUpperCase()}
+
+ ))}
+
+
+ >
+ )}
+
+
+ )}
-