-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
45 lines (39 loc) · 695 Bytes
/
types.ts
File metadata and controls
45 lines (39 loc) · 695 Bytes
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
export interface Dish {
id: string;
name: string;
price: number;
rating: number;
image: string;
discount?: string;
category: string;
}
export interface Category {
id: string;
name: string;
icon: string;
}
export interface CartItem extends Dish {
quantity: number;
}
export interface RecentOrder {
id: string;
name: string;
image: string;
date: string;
status?: 'delivered' | 'pending' | 'cancelled';
totalPrice?: number;
}
export interface Message {
id: string;
sender: string;
text: string;
time: string;
isMe: boolean;
avatar?: string;
}
export interface Bill {
id: string;
date: string;
amount: number;
status: 'paid' | 'unpaid';
}