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

Function usePlusRow

packages/shared/src/components/shell/YouPage.tsx:221–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219};
220
221const usePlusRow = (): { label: string; meta: string } => {
222 const { isPlus, status } = usePlusSubscription();
223
224 if (!isPlus) {
225 return { label: 'daily.dev Plus', meta: 'Upgrade' };
226 }
227 if (status === SubscriptionStatus.Cancelled) {
228 return { label: 'daily.dev Plus', meta: 'Renew' };
229 }
230
231 return { label: 'daily.dev Plus', meta: 'Manage' };
232};
233
234// The page behind the avatar: who you are and your counts on top, then
235// only the places nothing else leads to, then the utilities. One screen,

Callers 1

YouPageFunction · 0.85

Calls 1

usePlusSubscriptionFunction · 0.90

Tested by

no test coverage detected