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