(mode: EffectiveActivityPaneMode)
| 178 | type LoadingTipKind = 'moon' | 'composing'; |
| 179 | |
| 180 | function loadingTipKind(mode: EffectiveActivityPaneMode): LoadingTipKind | undefined { |
| 181 | if (mode === 'waiting' || mode === 'tool') return 'moon'; |
| 182 | if (mode === 'composing') return 'composing'; |
| 183 | return undefined; |
| 184 | } |
| 185 | |
| 186 | function sameStringArrays(a: readonly string[], b: readonly string[]): boolean { |
| 187 | return a.length === b.length && a.every((value, index) => value === b[index]); |