-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.ts
51 lines (50 loc) · 1.16 KB
/
db.ts
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
export const messages = [
{
id: '1',
content: 'You on your way?',
createdAt: new Date(new Date('1-1-2019').getTime() - 60 * 1000 * 1000),
},
{
id: '2',
content: "Hey, it's me",
createdAt: new Date(new Date('1-1-2019').getTime() - 2 * 60 * 1000 * 1000),
},
{
id: '3',
content: 'I should buy a boat',
createdAt: new Date(new Date('1-1-2019').getTime() - 24 * 60 * 1000 * 1000),
},
{
id: '4',
content: 'This is wicked good ice cream.',
createdAt: new Date(
new Date('1-1-2019').getTime() - 14 * 24 * 60 * 1000 * 1000
),
},
];
export const chats = [
{
id: '1',
name: 'Ethan Gonzalez',
picture: 'https://randomuser.me/api/portraits/thumb/men/1.jpg',
lastMessage: '1',
},
{
id: '2',
name: 'Bryan Wallace',
picture: 'https://randomuser.me/api/portraits/thumb/men/2.jpg',
lastMessage: '2',
},
{
id: '3',
name: 'Avery Stewart',
picture: 'https://randomuser.me/api/portraits/thumb/women/1.jpg',
lastMessage: '3',
},
{
id: '4',
name: 'Katie Peterson',
picture: 'https://randomuser.me/api/portraits/thumb/women/2.jpg',
lastMessage: '4',
},
];