(name: string, mode: string | null | undefined)
| 87 | }; |
| 88 | |
| 89 | const getFollowCopy = (name: string, mode: string | null | undefined) => { |
| 90 | switch (mode) { |
| 91 | case FeedSourceMode.Boost: |
| 92 | return { title: `Show more from ${name}` }; |
| 93 | case FeedSourceMode.Demote: |
| 94 | return { title: `Show less from ${name}` }; |
| 95 | case FeedSourceMode.Off: |
| 96 | return { title: `Ignore your follow of ${name} in For You` }; |
| 97 | default: |
| 98 | return { title: `Set ${name} back to Auto` }; |
| 99 | } |
| 100 | }; |
| 101 | |
| 102 | /** What a change does, in the words its row shows. */ |
| 103 | export const getWhatsOffChangeCopy = ( |
no outgoing calls
no test coverage detected