-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtypes.d.ts
More file actions
57 lines (50 loc) · 870 Bytes
/
types.d.ts
File metadata and controls
57 lines (50 loc) · 870 Bytes
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
/*
*/
type TreeOptions = {
maxDepth: number;
maxBufferSize: number;
canopyDepth: number;
proofBytes?: number;
space?: number;
cost?: number;
message?: string;
};
/*
General types for general uses
*/
/**
*
*/
type SimpleLinkItem = {
href: string;
label: string;
title?: string;
// only allow icons from FontAwesome
icon?: IconDefinition;
};
/**
*
*/
type NavLinkOptions = {
hrefBase?: string;
navLinks?: Array<SimpleLinkItem>;
};
/**
* Default props for all layouts
*/
type SimpleLayoutProps = {
children: React.ReactNode;
seo?: NextSeoProps;
className?: string;
/**
* Single component containing Dialog components to be included within the layout
*/
dialogs?: React.ReactNode;
};
/**
* Default props for most components
*/
type SimpleComponentProps = {
children?: React.ReactNode;
className?: string;
};