-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypings.d.ts
More file actions
142 lines (118 loc) · 2.43 KB
/
Copy pathtypings.d.ts
File metadata and controls
142 lines (118 loc) · 2.43 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
export type timestampType = {
seconds: number;
nanoseconds: number;
};
export type tweetType = {
userId: string;
timestamp: timestampType;
text: string;
retweets: string[];
media: string[];
likes: string[];
};
export type userInfoType = {
bio: string;
createdAt: string;
displayName: string;
email: string;
followers: string[];
following: string[];
userName: string;
bookmarkedTweets: string[];
};
export type profileTweetsProps = {
profileOwnerId: string;
};
export type userServicesProps = {
profileOwnerId: string;
authUserId: string;
profileOwnerInfo: DocumentData;
authUserInfo: DocumentData;
};
export type LayoutProps = {
children: React.ReactNode;
};
export type TweetProps = {
tweetId: string;
text: string;
timestamp: timestampType;
userId: string;
};
type CommentProps = {
text: string;
timestamp: timestampType;
userId: string;
};
export type TweetUserInfoProps = {
timestamp: timestampType;
userId: string;
};
export type TweetTextProps = {
text: string;
};
export type TweetStatsProps = {
tweetId: string;
};
export type StatBtnProps = {
tweetId: string;
currentUserId: string;
};
export type AddCommentProps = {
tweetId: string;
setShowAddComment: React.Dispatch<React.SetStateAction<boolean>>;
};
export type TweetCommentsProps = {
tweetId: string;
};
export type CommentBtnProps = {
handleCommentBtnClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
};
export type ExploreTabsProps = {
activeTab: string;
handleTabClick: (string) => void;
};
export type ProfileTabsProps = {
activeProfileTab: string;
handleTabClick: (string) => void;
};
export type UserNavProps = {
authUserId: string;
toggleShowUserNav: () => void;
};
export type BookmarkInfoProps = {
bookmarkInfo: any;
};
export type LikeProps = {
likeInfo: any;
};
export type MediaProps = {
tweetId: string;
};
export type EditProfileFormProps = {
authUserId: string;
triggerFunction: () => void;
};
export type EditProfileImagesProps = {
authUserId: string;
triggered: boolean;
};
export type CoverImageProps = {
userId: string;
};
export type ProfileOwnerTweetsImgsUiProps = {
imgMetaDataTweetId: string;
};
export type ProfileInfoProps = {
userName: string;
followers: string[];
following: string[];
bio: string;
};
export type ProfilePictureProps = {
userId: string;
height: number;
width: number;
};
export type DisplayNameProps = {
authUserId: string;
};