( post?: Pick<Post, 'bookmark'>, )
| 1768 | * it has to flip with the view or the card would stay undimmed until refetch. |
| 1769 | */ |
| 1770 | export const withPostRead = ( |
| 1771 | post?: Pick<Post, 'bookmark'>, |
| 1772 | ): Pick<Post, 'read' | 'bookmark'> => ({ |
| 1773 | read: true, |
| 1774 | ...(post?.bookmark && { bookmark: { ...post.bookmark, read: true } }), |
| 1775 | }); |
no outgoing calls
no test coverage detected