MCPcopy Create free account
hub / github.com/pingdotgg/t3code / selectThreadRightPanelState

Function selectThreadRightPanelState

apps/web/src/rightPanelStore.ts:536–542  ·  view source on GitHub ↗
(
  byThreadKey: Record<string, ThreadRightPanelState>,
  ref: ScopedThreadRef | null | undefined,
)

Source from the content-addressed store, hash-verified

534);
535
536export 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
544export function selectActiveRightPanel(
545 byThreadKey: Record<string, ThreadRightPanelState>,

Callers 7

ChatView.tsxFile · 0.90
ChatViewContentFunction · 0.90
selectActiveRightPanelFunction · 0.85

Calls 1

scopedThreadKeyFunction · 0.90

Tested by

no test coverage detected