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