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

Function getTwitterShareLink

packages/shared/src/lib/share.ts:21–24  ·  view source on GitHub ↗
(link: string, text: string)

Source from the content-addressed store, hash-verified

19export const getWhatsappShareLink = (link: string): string =>
20 `https://wa.me/?text=${encodeURIComponent(link)}`;
21export const getTwitterShareLink = (link: string, text: string): string =>
22 `http://twitter.com/share?url=${encodeURIComponent(
23 link,
24 )}&text=${encodeURIComponent(`${text} via @dailydotdev`)}`;
25export const getFacebookShareLink = (link: string): string =>
26 `https://www.facebook.com/sharer/sharer.php?display=page&u=${encodeURIComponent(
27 link,

Callers 5

ShareBar.spec.tsxFile · 0.90
ShareFunction · 0.90
SquadShareWidgetFunction · 0.90
getShareLinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected