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

Function getReadPostButtonText

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

Source from the content-addressed store, hash-verified

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