1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-26 20:48:30 +09:00
misskey/src/common/get-reaction-emoji.ts
2018-03-29 20:32:18 +09:00

15 lines
388 B
TypeScript

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 '😥';
case 'pudding': return '🍮';
default: return '';
}
}