(post: Post)
| 163 | ): string | undefined => post?.title || post?.sharedPost?.title || undefined; |
| 164 | |
| 165 | export const getReadPostButtonText = (post: Post): string => { |
| 166 | if (isVideoPost(post)) { |
| 167 | return 'Watch video'; |
| 168 | } |
| 169 | |
| 170 | if (isPostOrSharedPostTwitter(post)) { |
| 171 | return 'Read on'; |
| 172 | } |
| 173 | |
| 174 | return 'Read post'; |
| 175 | }; |
| 176 | |
| 177 | export const translateablePostFields = [ |
| 178 | 'title', |
no test coverage detected