MCPcopy Create free account
hub / github.com/dailydotdev/apps / postHasHeroImage

Function postHasHeroImage

packages/shared/src/lib/feedHighlightColSpan.ts:22–25  ·  view source on GitHub ↗
(post: {
  image?: string | null;
  sharedPost?: { image?: string | null } | null;
})

Source from the content-addressed store, hash-verified

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

Callers 1

requestedColSpanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected