MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / useIsInsideModal

Function useIsInsideModal

src/context/modalContext.tsx:28–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26export const ModalContext = createContext<ModalCtx | null>(null);
27
28export function useIsInsideModal(): boolean {
29 return useContext(ModalContext) !== null;
30}
31
32/**
33 * Available content rows/columns when inside a Modal, else falls back to

Callers 6

HelpV2Function · 0.50
StatusFunction · 0.50
SettingsFunction · 0.50
ConfigFunction · 0.50
ResumeCommandFunction · 0.50
WebToolsPanelFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected