forked from twilio-labs/twilio-mixologist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevent-type-consts.js
75 lines (71 loc) · 1.72 KB
/
event-type-consts.js
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
const BARTENDER = {
iconBasePath: '/assets/bartender-icons/bartender-icons_',
dashboard: {
headerTitle: 'Bartender Dashboard',
headerIcon: 'bar-sign',
defaultProductIcon: 'pilsener',
productIcons: {
Beer: 'pilsener',
'White Wine': 'white-wine',
'Red Wine': 'red-wine',
},
},
kiosk: {
title: 'Thirsty? Need a Drink?',
tagLine: 'Make your drink order ⚡️ asynchronous ⚡️',
},
};
const BARISTA = {
iconBasePath: '/assets/barista-icons/barista-icons_',
dashboard: {
headerTitle: 'Barista Dashboard',
headerIcon: 'coffee-shop-sign',
defaultProductIcon: 'coffee-to-go',
productIcons: {
Cappuccino: 'cappuccino',
Tea: 'cup-of-coffee',
'Hot Chocolate': 'coffee-to-go',
'Flat White': 'flat-white',
Latte: 'cafe-latte',
Americano: 'americano',
Mocca: 'coffee-to-go',
Espresso: 'espresso-maker',
'Filter Coffee': 'coffee-filter',
},
},
kiosk: {
title: 'Thirsty? Coffee?',
tagLine: '',
},
};
const SMOOTHIE = {
iconBasePath: '/assets/smoothie-icons/smoothie-icons_',
dashboard: {
headerTitle: 'Smoothie Bar',
headerIcon: 'blender',
defaultProductIcon: 'cup',
productIcons: {
SendGrid: 'orange',
Lambada: 'orange',
Twilio: 'strawberry',
Colombia: 'strawberry',
Segment: 'pineapple',
Smaragd: 'pineapple',
},
},
kiosk: {
title: 'Thirsty? Smoothie?',
tagLine: 'Order Smoothies via WhatsApp',
},
};
export default function get(eventType) {
if (eventType === 'bartender') {
return BARTENDER;
} else if (eventType === 'smoothies') {
return SMOOTHIES;
}
if (eventType === 'smoothie') {
return SMOOTHIE;
}
return BARISTA;
}