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

Function close

packages/shared/src/components/modals/ImageModal.tsx:56–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 originRect,
55}: ImageModalProps): ReactElement | null {
56 const close = () => onRequestClose?.(undefined as never);
57 const imgRef = useRef<HTMLImageElement>(null);
58 const closeButtonRef = useRef<HTMLButtonElement>(null);
59 const phoneCloseButtonRef = useRef<HTMLElement>(null);

Callers 3

ImageModalFunction · 0.70
toOptionFunction · 0.50

Calls 1

onRequestCloseFunction · 0.50

Tested by

no test coverage detected