-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
95 lines (92 loc) · 2 KB
/
Copy pathconstants.js
File metadata and controls
95 lines (92 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
export const MOODS_COLOR = {
'happy': '#00b894',
'sad': '#0984e3',
'angry': '#d63031',
'disgust': '#e17055',
'scared': '#fdcb6e',
'stressed': '#6c5ce7',
'upset': '#74b9ff',
'depressed': '#e84393',
}
export const MOODS = [
{
name: 'Happy',
key: 'happy',
color: '#00b894',
},
{
name: 'Sad',
key: 'sad',
color: '#0984e3',
},
{
name: 'Angry',
key: 'angry',
color: '#d63031',
},
{
name: 'Disgust',
key: 'disgust',
color: '#e17055',
},
{
name: 'Scared',
key: 'scared',
color: '#fdcb6e',
},
{
name: 'Stressed',
key: 'stressed',
color: '#6c5ce7',
},
{
name: 'Upset',
key: 'upset',
color: '#74b9ff',
},
{
name: 'Depressed',
key: 'depressed',
color: '#e84393',
}
]
export const SUBSTANCES = [
{
key: 'alcohol',
name: 'Alcohol',
icon: 'glass-wine',
image: 'https://images.pexels.com/photos/4973806/pexels-photo-4973806.jpeg'
},
{
key: 'tobacco',
name: 'Tobacco',
icon: 'smoking',
image: 'https://images.pexels.com/photos/405082/pexels-photo-405082.jpeg'
},
{
key: 'marijuana',
name: 'Marijuana',
icon: 'cannabis',
image: 'https://images.pexels.com/photos/405082/pexels-photo-405082.jpeg'
},
{
key: 'drugs',
name: 'Drugs',
icon: 'pill',
image: 'https://images.pexels.com/photos/5722883/pexels-photo-5722883.jpeg'
},
{
key: 'caffeine',
name: 'Caffeine',
icon: 'coffee-outline',
image: 'https://images.pexels.com/photos/3832248/pexels-photo-3832248.jpeg'
}
]
export const GET_SUBSTANCE = (key) => {
const filtered = SUBSTANCES.filter(substance => substance.key === key)
if (filtered.length > 0) {
return filtered[0]
} else {
return null
}
}