2023-07-27 14:31:52 +09:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-08-17 21:20:58 +09:00
|
|
|
// eslint-disable-next-line import/no-default-export
|
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 '🍮';
|
2019-03-18 01:03:35 +09:00
|
|
|
case 'star': return '⭐';
|
|
|
|
default: return reaction;
|
2017-11-11 00:27:02 +09:00
|
|
|
}
|
|
|
|
}
|