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

Function isPostItem

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

Source from the content-addressed store, hash-verified

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

Callers 1

usePostModalNavigationFunction · 0.85

Calls 1

isBoostedPostAdFunction · 0.90

Tested by

no test coverage detected