-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.js
33 lines (31 loc) · 937 Bytes
/
data.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
export const generateOrderId = () => {
const min = 1000000000;
const max = 9999999999;
return Math.floor(Math.random() * (max - min + 1)) + min;
};
export const couriers = [
"G4S Kenya",
"DHL Kenya",
"Sendy",
"Posta Kenya",
"Aramex Kenya",
];
export const facilities = [
{ name: "Kenyatta National Hospital, Nairobi", phone: "+254114357926" },
{
name: "Moi Teaching and Referral Hospital, Eldoret",
phone: "+254114357926",
},
{
name: "Coast Provincial General Hospital, Mombasa",
phone: "+254114357926",
},
{ name: "Kisumu County Hospital, Kisumu", phone: "+254114357926" },
{ name: "Moi County Referral Hospital, Voi", phone: "+254114357926" },
{ name: "Nyeri County Referral Hospital, Nyeri", phone: "+254114357926" },
];
export const getUserNextOrderDate = (days) => {
const time = days * 24 * 60 * 60 * 1000;
const next_date = new Date().getTime() + time;
return next_date;
};