generated from emmanuelubachi/nextjs-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
48 lines (42 loc) · 789 Bytes
/
types.d.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
export type navbar = {
id: number;
name: string;
link: string;
}[];
// Charts props -----
export type ChartParamProps = {
name: string;
value: number;
};
export type DataProps = {
name: string;
value: number;
ISO_3?: string;
}[];
export type DatasetProps = {
Importer: string;
ImporterISO: string;
Year: number;
Data: DataProps;
}[];
// Filter props ----
export type YearProps = {
label: string;
value: number;
}[];
export type YearFilterProps = {
dataset?: DatasetProps;
filter: YearProps;
defaultChart: "Treemap" | "Bar" | "Line" | "Map";
};
export type ComboboxProp = {
options: {
value: number | string;
label: number | string;
}[];
defaultLabel: string;
handleSelectValue: any;
setOpen: any;
value: any;
open: boolean;
};