{/* The project always leads the header: knowing which project a
thread lives in is priority zero, and the thread title alone
doesn't answer it. */}
{activeProjectName ? (
- <>
-
-
-
- }
- >
-
- {activeProjectName}
-
- New thread in {activeProjectName}
-
-
-
- >
- ) : null}
-
- {renamingTitle !== null ? (
- {
- if (renameCommittedRef.current) return;
- commitRename(event.currentTarget.value);
- }}
- onFocus={(event) => event.currentTarget.select()}
- onKeyDown={handleRenameKeyDown}
- />
- ) : isServerThread ? (
+
}
>
- {activeThreadTitle}
-
+ {activeProjectName}
- {activeThreadTitle}
+ New thread in {activeProjectName}
- ) : (
-
-
- {activeThreadTitle}
-
- }
- />
- {activeThreadTitle}
-
- )}
-
-
-
- {activeProjectScripts && (
-
+ /
+
+
+ ) : null}
+
+
+ {activeThreadTitle}
+
+ }
/>
- )}
- {showOpenInPicker && (
-
- )}
- {activeProjectName && (
-
- )}
+ {activeThreadTitle}
+
);