2023-01-13 05:40:33 +01:00
|
|
|
export default function (reaction: string): string {
|
2017-11-10 16:27:02 +01:00
|
|
|
switch (reaction) {
|
2023-01-13 05:40:33 +01:00
|
|
|
case "like":
|
|
|
|
return "👍";
|
|
|
|
case "love":
|
|
|
|
return "❤️";
|
|
|
|
case "laugh":
|
|
|
|
return "😆";
|
|
|
|
case "hmm":
|
|
|
|
return "🤔";
|
|
|
|
case "surprise":
|
|
|
|
return "😮";
|
|
|
|
case "congrats":
|
|
|
|
return "🎉";
|
|
|
|
case "angry":
|
|
|
|
return "💢";
|
|
|
|
case "confused":
|
|
|
|
return "😥";
|
|
|
|
case "rip":
|
|
|
|
return "😇";
|
|
|
|
case "pudding":
|
|
|
|
return "🍮";
|
|
|
|
case "star":
|
|
|
|
return "⭐";
|
|
|
|
default:
|
|
|
|
return reaction;
|
2017-11-10 16:27:02 +01:00
|
|
|
}
|
|
|
|
}
|