-
Notifications
You must be signed in to change notification settings - Fork 7
/
types.ts
61 lines (56 loc) · 1.17 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
export type Category = {
_id?: string;
title: string;
slug: string;
imageURL?: string;
description: string;
color?: string;
createdAt?: string;
updatedAt?: string;
user?: string;
status?: string;
}
export type Post = {
_id?: string;
title: string;
slug: string;
content: string;
categories: string[];
views?: number;
writer?: string;
isPublished?: boolean;
status?: string;
createdAt?: string;
updatedAt?: string;
}
export type User = {
_id?: string;
name?: string;
email: string;
username: string;
role: string;
about?: string;
avatar?: string;
phone?: string;
access_token?: string;
createdAt?: string;
updatedAt?: string;
}
export type Button = {
text: string;
icon?: JSX.Element;
disabled?: boolean;
onClick?: () => void;
type?: "button" | "submit" | "reset";
shape?: "rounded-full" | "rounded-md" | "rounded-sm";
bgColor?: string;
textColor?: string;
bgHoverColor?: string;
textHoverColor?: string;
}
export type UtilButton = {
icon: JSX.Element;
color?: string;
title: string;
onClick?: () => void;
}