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

Function isModalOpen

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

Source from the content-addressed store, hash-verified

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

Callers 1

usePatchyAssistantFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected