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