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

Function getTopicCopy

packages/shared/src/features/feedExplain/whatsOff.ts:71–87  ·  view source on GitHub ↗
(name: string, mode: string | null | undefined)

Source from the content-addressed store, hash-verified

69};
70
71const getTopicCopy = (name: string, mode: string | null | undefined) => {
72 switch (mode) {
73 case FeedTopicMode.Boost:
74 return { title: `Show more ${name}` };
75 case FeedTopicMode.Demote:
76 return { title: `Show less ${name}` };
77 case FeedTopicMode.Off:
78 return {
79 title: `Turn off ${name} in For You`,
80 detail: 'Other feeds keep it',
81 };
82 case FeedTopicMode.StopLearning:
83 return { title: `Stop learning ${name} from your reading` };
84 default:
85 return { title: `Set ${name} back to Auto` };
86 }
87};
88
89const getFollowCopy = (name: string, mode: string | null | undefined) => {
90 switch (mode) {

Callers 1

getWhatsOffChangeCopyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected