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