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

Function logShareEvent

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

Source from the content-addressed store, hash-verified

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

Callers 2

usePostContentFunction · 0.70
onShareOrCopyFunction · 0.70

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected