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

Function onCopyClick

packages/shared/src/components/referral/InviteLinkInput.tsx:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 const [copied, onCopyLink] = useCopyLink(() => link);
31 const { logEvent } = useLogContext();
32 const onCopyClick = () => {
33 onCopyLink();
34 logEvent(logProps);
35
36 if (onCopy) {
37 onCopy();
38 }
39 };
40
41 const renderText = () => {
42 const copy = text?.initial ?? 'Copy link';

Callers

nothing calls this directly

Calls 2

logEventFunction · 0.85
onCopyFunction · 0.85

Tested by

no test coverage detected