(post?: Post)
| 156 | }; |
| 157 | |
| 158 | const getPostTypeForCard = (post?: Post): PostType => { |
| 159 | if (!post) { |
| 160 | return PostType.Article; |
| 161 | } |
| 162 | |
| 163 | if (isSocialTwitterPost(post)) { |
| 164 | return PostType.SocialTwitter; |
| 165 | } |
| 166 | |
| 167 | return post.type; |
| 168 | }; |
| 169 | |
| 170 | type GetTagsProps = { |
| 171 | isListFeedLayout: boolean; |
no test coverage detected