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

Function isBoostedPostAd

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

Source from the content-addressed store, hash-verified

165 !!ad.data?.source;
166
167export const isBoostedPostAd = (item: FeedItem): item is AdPostItem =>
168 item?.type === FeedItemType.Ad && isBoostedPostCreative(item.ad);
169
170export const isBoostedSquadAd = (item: FeedItem): item is AdSquadItem =>
171 item?.type === FeedItemType.Ad && isBoostedSquadCreative(item.ad);

Callers 10

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

Calls 1

isBoostedPostCreativeFunction · 0.85

Tested by

no test coverage detected