-
- {info?.name || "Unknown Relay"}
-
-
- {url}
-
-
- {info?.description && (
-
{info.description}
+ {/* Operator */}
+ {(info?.contact || info?.pubkey) && (
+
+
Operator
+
+ {info.contact && info.contact.length == 64 && (
+
+ )}
+ {info.pubkey && info.pubkey.length === 64 && (
+
)}
+ )}
- {/* Operator */}
- {(info?.contact || info?.pubkey) && (
-
-
Operator
-
- {info.contact && info.contact.length == 64 && (
-
- )}
- {info.pubkey && info.pubkey.length === 64 && (
-
- )}
-
+ {/* Software */}
+ {(info?.software || info?.version) && (
+
+
Software
+
+ {info.software || info.version}
+
+
+ )}
+
+ {/* Supported NIPs */}
+ {info?.supported_nips && info.supported_nips.length > 0 && (
+
+
Supported NIPs
+
+ {info.supported_nips.map((num: number) => (
+
+ ))}
- )}
+
+ )}
+
- {/* Software */}
- {(info?.software || info?.version) && (
-
-
Software
-
- {info.software || info.version}
-
-
- )}
+ {/* Spell Tabs */}
+ {relaySpells.length > 0 && (
+
+
+
+ {relaySpells.map((spell) => (
+
+ {spell.name || spell.alias || "Untitled Spell"}
+
+ ))}
+
- {/* Supported NIPs */}
- {info?.supported_nips && info.supported_nips.length > 0 && (
-
-
Supported NIPs
-
- {info.supported_nips.map((num: number) => (
-
- ))}
-
-
- )}
-
-
- {/* Spell Tab Contents */}
- {relaySpells.map((spell) => (
-
- ))}
-
+ {/* Spell Tab Contents */}
+ {relaySpells.map((spell) => (
+
+ ))}
+
+
+ )}