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

Function getPostTypeForCard

packages/shared/src/components/FeedItemComponent.tsx:115–125  ·  view source on GitHub ↗
(post?: Post)

Source from the content-addressed store, hash-verified

113}
114
115const getPostTypeForCard = (post?: Post): PostType => {
116 if (!post) {
117 return PostType.Article;
118 }
119
120 if (isSocialTwitterPost(post)) {
121 return PostType.SocialTwitter;
122 }
123
124 return post.type;
125};
126
127type GetTagsProps = {
128 isListFeedLayout: boolean;

Callers 1

FeedItemComponentFunction · 0.85

Calls 1

isSocialTwitterPostFunction · 0.90

Tested by

no test coverage detected