chore: refactor function

This commit is contained in:
Ephraim Atta-Duncan
2023-09-25 11:21:39 +00:00
parent b2e916378d
commit 78498793fa
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,
)}`;
};