MCPcopy Create free account
hub / github.com/dailydotdev/apps / isModalOpen

Function isModalOpen

packages/shared/src/features/patchy/usePatchyAssistant.ts:78–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76const welcomeOfferKey = (userId: string) => `patchy_welcome_offer:${userId}`;
77
78const isModalOpen = (): boolean =>
79 !!document.querySelector(
80 '.ReactModal__Overlay, [role="dialog"][aria-modal="true"]',
81 );
82
83interface ReadingSession {
84 post: Partial<Post>;

Callers 1

usePatchyAssistantFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected