(pathname: string, asPath?: string)
| 133 | // the bar leaves so a half-edited page cannot be abandoned by a tab. A |
| 134 | // conversation is the same, and its composer takes the bar's place. |
| 135 | export const hidesCluster = (pathname: string, asPath?: string): boolean => { |
| 136 | const path = withoutLayoutVariantPrefix(pathname ?? ''); |
| 137 | |
| 138 | return ( |
| 139 | noClusterPrefixes.some( |
| 140 | (prefix) => path === prefix || path.startsWith(`${prefix}/`), |
| 141 | ) || isMessageThread(asPath) |
| 142 | ); |
| 143 | }; |
| 144 | |
| 145 | // The in-app route stack: this tab's history entries in order, with a |
| 146 | // pointer at the current one, so a back can skip the entries that belong |
no test coverage detected