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

Function followTag

packages/shared/src/features/patchy/PatchyMenu.tsx:137–148  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

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}`,

Callers 1

getItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected