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

Function isBoostedPostAd

packages/shared/src/hooks/useFeed.ts:154–155  ·  view source on GitHub ↗
(item: FeedItem)

Source from the content-addressed store, hash-verified

152 | PlusEntryItem;
153
154export const isBoostedPostAd = (item: FeedItem): item is AdPostItem =>
155 item?.type === FeedItemType.Ad && !!item.ad.data?.post;
156
157export const isBoostedSquadAd = (item: FeedItem): item is AdSquadItem =>
158 item?.type === FeedItemType.Ad && !!item.ad.data?.source;

Callers 9

FeedFunction · 0.90
WithFeedLogExtraContextFunction · 0.90
FeedItemComponentFunction · 0.90
getPostFromItemFunction · 0.90
isPostItemFunction · 0.90
usePostModalNavigationFunction · 0.90
useOnPostClickFunction · 0.90
usePostFeedbackFunction · 0.90
useFeedOnPostClickFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected