( byThreadKey: Record<string, ThreadRightPanelState>, ref: ScopedThreadRef | null | undefined, )
| 534 | ); |
| 535 | |
| 536 | export function selectThreadRightPanelState( |
| 537 | byThreadKey: Record<string, ThreadRightPanelState>, |
| 538 | ref: ScopedThreadRef | null | undefined, |
| 539 | ): ThreadRightPanelState { |
| 540 | if (!ref) return EMPTY_THREAD_STATE; |
| 541 | return byThreadKey[scopedThreadKey(ref)] ?? EMPTY_THREAD_STATE; |
| 542 | } |
| 543 | |
| 544 | export function selectActiveRightPanel( |
| 545 | byThreadKey: Record<string, ThreadRightPanelState>, |
no test coverage detected