mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-06 15:29:44 +01:00
39 lines
790 B
TypeScript
39 lines
790 B
TypeScript
export type Rating = '1' | '2' | '3' | '4' | '5'; // 1 = worst, 5 = best. Portrayed as Emojis in the UI to minimize the comprehension barrier
|
|
|
|
/** Intentionally not exported, used only to name Emojis */
|
|
enum RatingEmojiEnum {
|
|
ANGRY = '😡',
|
|
SAD = '😞',
|
|
NEUTRAL = '😐',
|
|
HAPPY = '🙂',
|
|
LOVE = '😍',
|
|
}
|
|
|
|
export type RatingItem = {
|
|
id: Rating;
|
|
emoji: RatingEmojiEnum;
|
|
};
|
|
|
|
export const ratingOptions: RatingItem[] = [
|
|
{
|
|
id: '1',
|
|
emoji: RatingEmojiEnum.ANGRY,
|
|
},
|
|
{
|
|
id: '2',
|
|
emoji: RatingEmojiEnum.SAD,
|
|
},
|
|
{
|
|
id: '3',
|
|
emoji: RatingEmojiEnum.NEUTRAL,
|
|
},
|
|
{
|
|
id: '4',
|
|
emoji: RatingEmojiEnum.HAPPY,
|
|
},
|
|
{
|
|
id: '5',
|
|
emoji: RatingEmojiEnum.LOVE,
|
|
},
|
|
];
|