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

Function openPatchyPost

packages/shared/src/features/patchy/PatchyPostModal.tsx:20–26  ·  view source on GitHub ↗
(post: Post)

Source from the content-addressed store, hash-verified

18// Opens a post Patchy suggested the way the feed does, in the post modal.
19// Returns false when nothing is mounted to open it, so the caller navigates.
20export const openPatchyPost = (post: Post): boolean => {
21 if (!opener) {
22 return false;
23 }
24 opener(post);
25 return true;
26};
27
28// Mounted once next to the rail.
29export const PatchyPostModal = (): ReactElement | null => {

Callers 2

checkFunction · 0.90
PatchyMenuFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected