MCPcopy
hub / github.com/nygardk/react-share / threadsLink

Function threadsLink

src/ThreadsShareButton.tsx:6–16  ·  view source on GitHub ↗
(url: string, { title }: { title?: string })

Source from the content-addressed store, hash-verified

4import ShareButton, { type ShareButtonProps } from './ShareButton';
5
6function threadsLink(url: string, { title }: { title?: string }) {
7 assert(url, 'threads.url');
8
9 return (
10 'https://threads.net/intent/post' +
11 objectToGetParams({
12 url,
13 text: title,
14 })
15 );
16}
17
18type ThreadsShareButtonProps = Omit<ShareButtonProps<{ title?: string }>, 'title'> & {
19 /** @deprecated This prop is ignored and will be removed in v6. */

Callers

nothing calls this directly

Calls 2

assertFunction · 0.85
objectToGetParamsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…