()
| 219 | }; |
| 220 | |
| 221 | const 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, |
no test coverage detected