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

Function useCopyPostLink

packages/shared/src/hooks/useCopyPostLink.ts:4–8  ·  view source on GitHub ↗
(link?: string)

Source from the content-addressed store, hash-verified

2import { useCopyLink } from './useCopy';
3
4export function useCopyPostLink(link?: string): [boolean, CopyNotifyFunction] {
5 const [copying, copy] = useCopyLink(link ? () => link : undefined);
6
7 return [copying, copy];
8}

Callers 8

ShareMobileFunction · 0.90
ShareBarFunction · 0.90
MobilePostFloatingBarFunction · 0.90
MobilePostFloatingBarV1Function · 0.90
DiscussionShareRowFunction · 0.90
usePostContentFunction · 0.90
useSharePostFunction · 0.90
useLoggedCopyPostLinkFunction · 0.90

Calls 1

useCopyLinkFunction · 0.90

Tested by

no test coverage detected