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
|
|
|
};
|