MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isApplicable

Function isApplicable

src/components/messageActions.tsx:188–191  ·  view source on GitHub ↗
(a: (typeof MESSAGE_ACTIONS)[number], c: MessageActionsState)

Source from the content-addressed store, hash-verified

186 }
187})] as const;
188function isApplicable(a: (typeof MESSAGE_ACTIONS)[number], c: MessageActionsState): boolean {
189 if (!(a.types as readonly string[]).includes(c.msgType)) return false;
190 return !a.applies || a.applies(c);
191}
192export type MessageActionsState = {
193 uuid: string;
194 msgType: NavigableType;

Callers 2

useMessageActionsFunction · 0.85
MessageActionsBarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected