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

Function isPostItem

packages/shared/src/hooks/usePostModalNavigation.ts:56–57  ·  view source on GitHub ↗
(item: FeedItem)

Source from the content-addressed store, hash-verified

54 feedName,
55}: UsePostModalNavigationProps): UsePostModalNavigation => {
56 const isPostItem = (item: FeedItem) =>
57 item.type === 'post' || isBoostedPostAd(item);
58 const router = useRouter();
59 // special query params to track base pathnames and params for the post modal
60 const activeFeedName = router.query?.pmcid as string;

Callers 1

usePostModalNavigationFunction · 0.85

Calls 1

isBoostedPostAdFunction · 0.90

Tested by

no test coverage detected