Sharkey/src/misc/get-reaction-emoji.ts

17 lines
452 B
TypeScript
Raw Normal View History

2017-11-10 17:27:02 +02:00
export default function(reaction: string): string {
switch (reaction) {
case 'like': return '👍';
case 'love': return '❤️';
case 'laugh': return '😆';
case 'hmm': return '🤔';
case 'surprise': return '😮';
case 'congrats': return '🎉';
case 'angry': return '💢';
case 'confused': return '😥';
2018-08-11 15:08:34 +03:00
case 'rip': return '😇';
2017-11-10 17:27:02 +02:00
case 'pudding': return '🍮';
case 'star': return '⭐';
default: return reaction;
2017-11-10 17:27:02 +02:00
}
}