1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-25 12:08:26 +09:00
misskey/src/misc/get-reaction-emoji.ts

16 lines
417 B
TypeScript
Raw Normal View History

2017-11-11 00:27:02 +09: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 21:08:34 +09:00
case 'rip': return '😇';
2017-11-11 00:27:02 +09:00
case 'pudding': return '🍮';
default: return '';
}
}