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

Function getPostTypeForCard

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

Source from the content-addressed store, hash-verified

125}
126
127const getPostTypeForCard = (post?: Post): PostType => {
128 if (!post) {
129 return PostType.Article;
130 }
131
132 if (isSocialTwitterPost(post)) {
133 return PostType.SocialTwitter;
134 }
135
136 return post.type;
137};
138
139type GetTagsProps = {
140 isListFeedLayout: boolean;

Callers 1

FeedItemComponentFunction · 0.85

Calls 1

isSocialTwitterPostFunction · 0.90

Tested by

no test coverage detected