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