( post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null, )
| 77 | }; |
| 78 | |
| 79 | export const getSocialTwitterPostType = ( |
| 80 | post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null, |
| 81 | ): PostType | undefined => { |
| 82 | if (!isSocialTwitterPost(post)) { |
| 83 | return post?.type; |
| 84 | } |
| 85 | |
| 86 | return isSocialTwitterShareLike(post) ? PostType.Share : PostType.Freeform; |
| 87 | }; |
| 88 | |
| 89 | export const isShareLikePost = ( |
| 90 | post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null, |
no test coverage detected