+
+
+
+ setDescription(e.target.value)}
+ placeholder={t("routes.description_label")}
+ />
+
+
+
+
+
+
+
+
+
+ {[1, 2, 3].map((w) => (
+
+ ))}
+
+
+
+
+
+
+
{
+ setPathQuery(e.target.value);
+ onPathSearch(e.target.value);
+ }}
+ onKeyDown={handlePathKeydown}
+ placeholder={t("routes.search_nodes_placeholder")}
+ autoComplete="off"
+ />
+ {availPathResults.length > 0 && (
+
+ {availPathResults.map((n) => (
+ {
+ onPathSelect(n);
+ setPathQuery("");
+ }}
+ />
+ ))}
+
+ )}
+
+
{t("routes.path_help")}
+
+ {pathNodes.length === 0 ? (
+
+ {t("routes.path_empty")}
+
+ ) : (
+ pathNodes.map((n, i) => (
+
+ {i > 0 && (
+
+ {"\u2192"}
+
+ )}
+
+ {i > 0 && (
+
+ )}
+ {n.name || n.public_key.slice(0, 8)}
+
+ {i < pathNodes.length - 1 && (
+
+ )}
+
+
+ ))
+ )}
+
+
+
+
+
+
{
+ setObsQuery(e.target.value);
+ onObsSearch(e.target.value);
+ }}
+ onKeyDown={handleObsKeydown}
+ placeholder={t("routes.search_nodes_placeholder")}
+ autoComplete="off"
+ />
+ {availObsResults.length > 0 && (
+
+ {availObsResults.map((n) => (
+ {
+ onObsSelect(n);
+ setObsQuery("");
+ }}
+ />
+ ))}
+
+ )}
+
+
+ {t("routes.observers_help")}
+
+
+ {observerNodes.length === 0 ? (
+
+ {t("routes.observers_empty")}
+
+ ) : (
+ observerNodes.map((n, i) => (
+
+ {n.name || n.public_key.slice(0, 8)}
+
+
+ ))
+ )}
+
+
+
+
+
+
+
+
+