-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.ts
90 lines (79 loc) · 1.62 KB
/
types.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
type FormEvent = React.FormEvent<HTMLFormElement>;
type MouseEvent = React.MouseEvent<HTMLButtonElement>;
type ChangeEvent = React.ChangeEvent<HTMLInputElement>;
type DBUser = {
name: string;
photoURL: string;
email: string;
img_1: string;
imgCategory_1: string;
imgTheme_1: string;
img_2: string;
imgCategory_2: string;
imgTheme_2: string;
img_3: string;
imgCategory_3: string;
imgTheme_3: string;
reel_1: string;
reelCategory_1: string;
reelTheme_1: string;
reel_2: string;
reelCategory_2: string;
reelTheme_2: string;
txn: string;
};
type ILeaderBoard = {
name: string;
photoURL: string;
imageCount: number;
reelCount: number;
};
type ImageReelCount = {
email: string;
imageCount: number;
reelCount: number;
};
type UserFetched = {
name: string;
photoURL: string;
email: string;
images: [{ url: string; theme: string }];
reels: [{ url: string; theme: string }];
};
type ImageSectionData = {
section: string | null;
image: File | null;
category: string | null;
theme: string | null;
url?: string;
};
type ImageFormDataObject = {
section1: ImageSectionData;
section2: ImageSectionData;
section3: ImageSectionData;
};
type ImageUploadFormat = {
label: string | null;
file: File | null;
}
type ReelSectionData = {
reel: string | null;
category: string | null;
theme: string | null;
};
type ReelFormDataObject = {
section1: ReelSectionData;
section2: ReelSectionData;
};
export type {
FormEvent,
MouseEvent,
ChangeEvent,
DBUser,
ILeaderBoard,
ImageReelCount,
UserFetched,
ImageFormDataObject,
ReelFormDataObject,
ImageUploadFormat
};