(
post:
| {
title?: string | null;
sharedPost?: { title?: string | null } | null;
}
| undefined
| null,
)
| 152 | : post; |
| 153 | |
| 154 | export const getPostTitle = ( |
| 155 | post: |
| 156 | | { |
| 157 | title?: string | null; |
| 158 | sharedPost?: { title?: string | null } | null; |
| 159 | } |
| 160 | | undefined |
| 161 | | null, |
| 162 | ): string | undefined => post?.title || post?.sharedPost?.title || undefined; |
| 163 | |
| 164 | export const getReadPostButtonText = (post: Post): string => { |
| 165 | if (isVideoPost(post)) { |
no outgoing calls
no test coverage detected