(post: Post)
| 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. |
| 20 | export 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. |
| 29 | export const PatchyPostModal = (): ReactElement | null => { |
no outgoing calls
no test coverage detected