eletrotupi / tcc/ frontend/constants/moods.tsa1a9079e3159130a372ea537b25611ee5d274ef9
515 B | 19 lines Raw
1
// TODO: Keep these synchronized with the API
2
export interface MoodDefinition {
3
  id: string;
4
  icon: string;
5
  label: string;
6
};
7

8
export const MOODS: MoodDefinition[] = [
9
  { id: 'sad', icon: '😒', label: 'Triste' },
10
  { id: 'neutral', icon: '😐', label: 'Neutro' },
11
  { id: 'good', icon: '😊', label: 'Bem' },
12
  { id: 'great', icon: '🀩', label: 'Γ“timo' },
13
  { id: 'angry', icon: '😠', label: 'Irritado' },
14
];
15

16
// Lookup helper
17
export const getMood = (id: string) =>
18
  MOODS.find((c) => c.id === id);
19