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

Function PlusSquare

packages/shared/src/components/shell/ShellBlock.tsx:71–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69};
70
71const 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.

Callers

nothing calls this directly

Calls 1

usePlusSubscriptionFunction · 0.90

Tested by

no test coverage detected