mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
chore: refactor function
This commit is contained in:
committed by
Mythie
parent
127dc42dc5
commit
34ce0d084e
5
packages/lib/universal/generate-twitter-intent.ts
Normal file
5
packages/lib/universal/generate-twitter-intent.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export const generateTwitterIntent = (text: string, shareUrl: string) => {
|
||||
return `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}%0A${encodeURIComponent(
|
||||
shareUrl,
|
||||
)}`;
|
||||
};
|
||||
Reference in New Issue
Block a user