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

Function isBoostedPostAd

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

Source from the content-addressed store, hash-verified

154 | PlusEntryItem;
155
156export const isBoostedPostAd = (item: FeedItem): item is AdPostItem =>
157 item?.type === FeedItemType.Ad && !!item.ad.data?.post;
158
159export const isBoostedSquadAd = (item: FeedItem): item is AdSquadItem =>
160 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