chore: refactor function

This commit is contained in:
Ephraim Atta-Duncan
2023-09-25 11:21:39 +00:00
committed by Mythie
parent 127dc42dc5
commit 34ce0d084e
2 changed files with 6 additions and 6 deletions

View File

@ -0,0 +1,5 @@
export const generateTwitterIntent = (text: string, shareUrl: string) => {
return `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}%0A${encodeURIComponent(
shareUrl,
)}`;
};