( post: Pick<Post, 'type' | 'subType' | 'sharedPost' | 'permalink'>, )
| 128 | * otherwise the post's own permalink. |
| 129 | */ |
| 130 | export const getReadArticleHref = ( |
| 131 | post: Pick<Post, 'type' | 'subType' | 'sharedPost' | 'permalink'>, |
| 132 | ): string | undefined => |
| 133 | getPostReadTarget(post).target?.permalink ?? post.permalink; |
| 134 | |
| 135 | export const getReadPostButtonText = (post: Post): string => { |
| 136 | if (isVideoPost(post)) { |
no test coverage detected