+
+ Shared environment · {envLabel}
+
+
+ Who are you?
+
+
+ {envLabel} uses a closed identity
+ map. Type at least {IDENTITY_CLAIM_TYPEAHEAD_MIN_CHARS} characters of your username (for
+ example pat
+ …), then choose a match. Free-form names are not allowed.
+
+
+
+ {
+ setQuery(event.currentTarget.value);
+ setError(null);
+ }}
+ onKeyDown={(event) => {
+ if (event.key === "Enter") {
+ event.preventDefault();
+ void submitUsername(query);
+ }
+ }}
+ />
+
+ {suggestions.length > 0 ? (
+
+ {suggestions.map((person) => (
+ -
+
+
+ ))}
+
+ ) : query.trim().length >= IDENTITY_CLAIM_TYPEAHEAD_MIN_CHARS ? (
+ No map matches for that query.
+ ) : (
+
+ Type {IDENTITY_CLAIM_TYPEAHEAD_MIN_CHARS}+ characters to search the map (
+ {snapshot.people.length} people listed).
+
+ )}
+
+ {error ? {error}
: null}
+
+
+
+
+