( post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null, )
| 83 | }; |
| 84 | |
| 85 | export const getSocialTwitterPostType = ( |
| 86 | post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null, |
| 87 | ): PostType | undefined => { |
| 88 | if (!isSocialTwitterPost(post)) { |
| 89 | return post?.type; |
| 90 | } |
| 91 | |
| 92 | return isSocialTwitterShareLike(post) ? PostType.Share : PostType.Freeform; |
| 93 | }; |
| 94 | |
| 95 | export const isShareLikePost = ( |
| 96 | post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null, |
no test coverage detected