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

Function logClick

packages/shared/src/components/widgets/SocialShare.tsx:72–81  ·  view source on GitHub ↗
(provider: ShareProvider)

Source from the content-addressed store, hash-verified

70 ? `Via Daily.Dev: ${post.title}`
71 : 'Via Daily.Dev';
72 const logClick = (provider: ShareProvider) =>
73 logEvent(
74 postLogEvent(LogEvent.SharePost, post, {
75 columns,
76 column,
77 row,
78 extra: { provider, origin, ...(comment && { commentId: comment.id }) },
79 ...(logOpts && logOpts),
80 }),
81 );
82
83 const logAndCopyLink = async () => {
84 const shortLink = await getShortUrl(link);

Callers 6

logAndCopyLinkFunction · 0.70
ReadingListWidgetFunction · 0.50
HappeningNowWidgetFunction · 0.50
useEnableNotificationFunction · 0.50

Calls 2

postLogEventFunction · 0.90
logEventFunction · 0.85

Tested by

no test coverage detected