eletrotupi / tcc/ frontend/constants/moods.ts31d5e0a428d4abeb45d3d08451c8e03af2590cc5
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