(post: {
image?: string | null;
sharedPost?: { image?: string | null } | null;
})
| 19 | }): boolean => (post.hero?.size ?? 1) > 1; |
| 20 | |
| 21 | export const postHasHeroImage = (post: { |
| 22 | image?: string | null; |
| 23 | sharedPost?: { image?: string | null } | null; |
| 24 | }): boolean => !!(post.sharedPost?.image || post.image); |
| 25 | |
| 26 | const MAX_HERO_COL_SPAN = 4; |
| 27 |