(name: string, mode: string | null | undefined)
| 69 | }; |
| 70 | |
| 71 | const 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 | |
| 89 | const getFollowCopy = (name: string, mode: string | null | undefined) => { |
| 90 | switch (mode) { |
no outgoing calls
no test coverage detected