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

Function onCopyLink

packages/shared/src/components/profile/ProfileHeader.tsx:106–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 const showsTopActions = isPhone && !isSameUser && !isPreviewMode;
105
106 const onCopyLink = () => {
107 logEvent({
108 event_name: LogEvent.ShareProfile,
109 target_type: TargetType.ProfilePage,
110 target_id: user.id,
111 extra: JSON.stringify({
112 provider: ShareProvider.CopyLink,
113 origin: Origin.ProfileHeader,
114 }),
115 });
116 copyLink({
117 link: getTrackedUrl(user.permalink, ReferralCampaignKey.ShareProfile),
118 shorten: true,
119 });
120 };
121
122 const avatarTopClassName = coversBlock
123 ? 'top-[calc(8.5rem+var(--safe-area-top,0px))] tablet:top-16'

Callers

nothing calls this directly

Calls 2

logEventFunction · 0.85
copyLinkFunction · 0.50

Tested by

no test coverage detected