- {enabled.length === 0 ? (
-
- No relays enabled.{' '}
- {' '}
- to publish notes.
-
- ) : testing && Object.keys(statuses).length === 0 ? (
-
- ) : (
-
- {enabled.map((relay) => {
- const status = statuses[relay.url];
- return (
- -
-
- {relay.url}
-
- {status?.state === 'connected'
- ? `Connected${status.detail ? ` · ${status.detail}` : ''}`
- : status?.state === 'failed'
- ? 'Unavailable'
- : 'Checking…'}
-
-
- );
- })}
-
- )}
- {failedCount > 0 &&
- !testing &&
- enabled.length > 0 &&
- Object.keys(statuses).length === enabled.length && (
-
- {connectedCount} of {enabled.length} enabled relays reachable.
-
- )}
+
+ {state?.profiles.map((profile) => (
+ -
+
+
+
+ {profile.label}
+ {profile.is_active && (
+
+ Active
+
+ )}
+
+
+ {shortenNpub(profile.npub, shorten)}
+
+
+
+
+ {profile.is_active ? (
+
+ ) : (
+
+ )}
+
+
+ ))}
+
+