MCPcopy Create free account
hub / github.com/Noumena-Network/code / shouldShowRemoteCalloutForState

Function shouldShowRemoteCalloutForState

src/components/RemoteCallout.tsx:99–107  ·  view source on GitHub ↗
(params: {
  remoteDialogSeen: boolean
  bridgeEnabled: boolean
  session: RemoteCalloutSession
})

Source from the content-addressed store, hash-verified

97}
98
99export function shouldShowRemoteCalloutForState(params: {
100 remoteDialogSeen: boolean
101 bridgeEnabled: boolean
102 session: RemoteCalloutSession
103}): boolean {
104 if (params.remoteDialogSeen) return false
105 if (!params.bridgeEnabled) return false
106 return hasRemoteCalloutSession(params.session)
107}
108
109export function hasRemoteCalloutSession(
110 session: RemoteCalloutSession,

Callers 2

shouldShowRemoteCalloutFunction · 0.85

Calls 1

hasRemoteCalloutSessionFunction · 0.85

Tested by

no test coverage detected