2017-11-10 15:27:02 +00: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 12:08:34 +00:00
|
|
|
case 'rip': return '😇';
|
2017-11-10 15:27:02 +00:00
|
|
|
case 'pudding': return '🍮';
|
2019-03-17 16:03:35 +00:00
|
|
|
case 'star': return '⭐';
|
|
|
|
default: return reaction;
|
2017-11-10 15:27:02 +00:00
|
|
|
}
|
|
|
|
}
|