(tag: string)
| 135 | onClick: spotlight?.open, |
| 136 | }; |
| 137 | const followTag = (tag: string): MenuItem => ({ |
| 138 | id: 'follow', |
| 139 | label: done.includes('follow') ? `Following #${tag}` : `Follow #${tag}`, |
| 140 | icon: icon.tag, |
| 141 | isDone: done.includes('follow'), |
| 142 | onClick: () => |
| 143 | onFollowTags({ tags: [tag] }).then(({ successful }) => { |
| 144 | if (successful) { |
| 145 | setDone((current) => [...current, 'follow']); |
| 146 | } |
| 147 | }), |
| 148 | }); |
| 149 | const bestOfTag = (tag: string): MenuItem => ({ |
| 150 | id: 'best_of', |
| 151 | label: `Best of #${tag}`, |