Files
sign/packages/lib/universal/generate-twitter-intent.ts

6 lines
202 B
TypeScript
Raw Normal View History

2023-09-25 11:21:39 +00:00
export const generateTwitterIntent = (text: string, shareUrl: string) => {
2023-09-26 15:56:11 +10:00
return `https://twitter.com/intent/tweet?text=${encodeURIComponent(
text,
)}%0A%0A${encodeURIComponent(shareUrl)}`;
2023-09-25 11:21:39 +00:00
};