()
| 69 | }; |
| 70 | |
| 71 | const PlusSquare = (): ReactElement | null => { |
| 72 | const { isPlus, logSubscriptionEvent } = usePlusSubscription(); |
| 73 | |
| 74 | if (isPlus) { |
| 75 | return null; |
| 76 | } |
| 77 | |
| 78 | return ( |
| 79 | <Link href={plusUrl} passHref> |
| 80 | <ShellSquare |
| 81 | tag="a" |
| 82 | aria-label="daily.dev Plus" |
| 83 | onClick={() => |
| 84 | logSubscriptionEvent({ |
| 85 | event_name: LogEvent.UpgradeSubscription, |
| 86 | target_id: TargetId.MobileHeader, |
| 87 | }) |
| 88 | } |
| 89 | > |
| 90 | <span className="flex text-action-plus-default"> |
| 91 | <DevPlusIcon secondary size={IconSize.Small} /> |
| 92 | </span> |
| 93 | </ShellSquare> |
| 94 | </Link> |
| 95 | ); |
| 96 | }; |
| 97 | |
| 98 | // The inbox door, beside the avatar on every root: messages are checked |
| 99 | // in passing, not browsed, so they live in the header rather than a tab. |
nothing calls this directly
no test coverage detected