+ {nip17RelayData.map(({ pubkey, relays, loading, relayData }) => (
+
+
+
+
+ {loading
+ ? "..."
+ : `${relays.length} relay${relays.length !== 1 ? "s" : ""}`}
+
+
+ {loading ? (
+
+ Loading...
+
+ ) : relays.length === 0 ? (
+
+ No inbox relays configured
+
+ ) : (
+ relayData.map(({ url, state }) => {
+ const connIcon = getConnectionIcon(state);
+ const authIcon = getAuthIcon(state);
+ return (
+
+
+ {connIcon.icon}
+ {authIcon.icon}
+
+
+
+ );
+ })
+ )}
+