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

Function postHasHeroImage

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

Source from the content-addressed store, hash-verified

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

Callers 1

requestedColSpanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected