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

Function onCopyClick

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

Source from the content-addressed store, hash-verified

34 const [copied, onCopyLink] = useCopyLink(() => link);
35 const { logEvent } = useLogContext();
36 const onCopyClick = () => {
37 onCopyLink({ format: copyFormat, message: copyMessage });
38 logEvent(logProps);
39
40 if (onCopy) {
41 onCopy();
42 }
43 };
44
45 const renderText = () => {
46 const copy = text?.initial ?? 'Copy link';

Callers

nothing calls this directly

Calls 3

logEventFunction · 0.85
onCopyLinkFunction · 0.50
onCopyFunction · 0.50

Tested by

no test coverage detected