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

Function isBoostedPostAd

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

Source from the content-addressed store, hash-verified

141 | PlaceholderItem;
142
143export const isBoostedPostAd = (item: FeedItem): item is AdPostItem =>
144 item?.type === FeedItemType.Ad && !!item.ad.data?.post;
145
146export const isBoostedSquadAd = (item: FeedItem): item is AdSquadItem =>
147 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