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