const shareOnKakao = (): void => {
if (window.Kakao) {
window.Kakao.Link.sendDefault({
objectType: 'feed',
content: {
title: 'Color Inside ์ค๋ ๋น์ ์ ๊ฐ์ ์ ์์?',
description: `#์ค๋_๋๋_${emotion}`,
imageUrl: 'IMAGE_URL',
link: {
mobileWebUrl: window.location.href,
webUrl: window.location.href
}
},
buttons: [
{
title: '๊ฐ์ ํ
์คํธํ๋ฌ ๊ฐ๊ธฐ',
link: {
mobileWebUrl: window.location.href,
webUrl: window.location.href
}
}
]
});
}
};
ย
const shareOnLink = async (): Promise<void> => {
const url = window.location.href;
await navigator.clipboard.writeText(url);
alert('๋งํฌ๊ฐ ๋ณต์ฌ๋์์ต๋๋ค.');
};