-
Notifications
You must be signed in to change notification settings - Fork 61
/
types.tsx
53 lines (47 loc) · 848 Bytes
/
types.tsx
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
export type foodItemStatic = {
id: number;
title: string;
desc: string;
price: string;
imgSrc: string;
}
export type foodItemsStatic = {
items: foodItemStatic[];
}
export type FoodItem = {
id: number;
title: string;
description?: string;
price: string;
imageURL: string;
calories: string;
qty: string;
category: string;
};
export type FoodItems = {
items: FoodItem[];
}
export type FoodCategory = {
id: number;
name: string;
urlParam: string;
icon?: JSX.Element
}
export type cartItem = {
id: number;
fid: number;
uid: string;
qty: number;
}
export type cartItems = {
items: cartItem[]
}
export type User = {
uid: string;
email?: string;
displayName?:string;
phoneNumber?: string;
providerId: string;
photoURL?: string;
}
export type FoodCategories = FoodCategory[];