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

Function useFeedPreviewMode

packages/shared/src/hooks/useFeedPreviewMode.ts:5–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { RequestKey } from '../lib/query';
4
5export const useFeedPreviewMode = (): boolean => {
6 const { queryKey: feedQueryKey } = useContext(ActiveFeedContext);
7
8 return feedQueryKey?.[0] === RequestKey.FeedPreview;
9};

Callers 15

FreeformList.tsxFile · 0.90
ShareList.tsxFile · 0.90
LiveRoomPostOverlayFunction · 0.90
FeedItemContainerFunction · 0.90
PostCardHeaderFunction · 0.90
CardOverlayFunction · 0.90
ActionButtonsV1Function · 0.90
SourceButtonFunction · 0.90
ActionButtonsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected