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

Function getReadPostButtonText

packages/shared/src/graphql/posts.ts:135–145  ·  view source on GitHub ↗
(post: Post)

Source from the content-addressed store, hash-verified

133 getPostReadTarget(post).target?.permalink ?? post.permalink;
134
135export const getReadPostButtonText = (post: Post): string => {
136 if (isVideoPost(post)) {
137 return 'Watch video';
138 }
139
140 if (isPostOrSharedPostTwitter(post)) {
141 return 'Read on';
142 }
143
144 return 'Read post';
145};
146
147export const translateablePostFields = [
148 'title',

Callers 8

PostCardHeaderFunction · 0.90
useReadPostButtonTextFunction · 0.90
PrivatePostFunction · 0.90
PostHeaderActionsFunction · 0.90
renderReadButtonFunction · 0.90
posts.spec.tsFile · 0.90

Calls 2

isVideoPostFunction · 0.85

Tested by

no test coverage detected