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