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

Function logShareEvent

packages/shared/src/hooks/useShareOrCopyLink.ts:29–35  ·  view source on GitHub ↗
(provider: ShareProvider)

Source from the content-addressed store, hash-verified

27 const onShareOrCopy: CopyNotifyFunction = async () => {
28 const shortLink = cid ? await getShortUrl(link, cid) : link;
29 const logShareEvent = (provider: ShareProvider): void => {
30 if (!logObject) {
31 return;
32 }
33
34 logEvent(logObject(provider));
35 };
36
37 if (shouldUseNativeShare()) {
38 try {

Callers 2

usePostContentFunction · 0.70
onShareOrCopyFunction · 0.70

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected