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

Function AvatarSquare

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

Source from the content-addressed store, hash-verified

48};
49
50const AvatarSquare = (): ReactElement | null => {
51 const { user } = useAuthContext();
52
53 if (!user) {
54 return null;
55 }
56
57 return (
58 <Link href={`${webappUrl}you`} passHref>
59 <ShellSquare tag="a" aria-label="You" className="overflow-hidden">
60 <ProfilePicture
61 user={user}
62 size={ProfileImageSize.Large}
63 nativeLazyLoading
64 className="!size-[2.375rem] !rounded-14"
65 />
66 </ShellSquare>
67 </Link>
68 );
69};
70
71const PlusSquare = (): ReactElement | null => {
72 const { isPlus, logSubscriptionEvent } = usePlusSubscription();

Callers

nothing calls this directly

Calls 1

useAuthContextFunction · 0.90

Tested by

no test coverage detected