1
1
import * as React from 'react' ;
2
2
3
3
interface CommentProps {
4
+ [ key : string ] : any ;
5
+
4
6
/** An element type to render as (string or function). */
5
7
as ?: any ;
6
8
@@ -14,35 +16,39 @@ interface CommentProps {
14
16
collapsed ?: boolean ;
15
17
}
16
18
17
- interface CommentClass extends React . ComponentClass < CommentProps > {
18
- Author : typeof CommentAuthor ;
19
+ interface CommentComponent extends React . StatelessComponent < CommentProps > {
19
20
Action : typeof CommentAction ;
20
21
Actions : typeof CommentActions ;
22
+ Author : typeof CommentAuthor ;
21
23
Avatar : typeof CommentAvatar ;
22
24
Content : typeof CommentContent ;
23
25
Group : typeof CommentGroup ;
24
26
Metadata : typeof CommentMetadata ;
25
27
Text : typeof CommentText ;
26
28
}
27
29
28
- export const Comment : CommentClass ;
30
+ export const Comment : CommentComponent ;
31
+
32
+ interface CommentActionProps {
33
+ [ key : string ] : any ;
29
34
30
- interface CommentAuthorProps {
31
35
/** An element type to render as (string or function). */
32
36
as ?: any ;
33
37
38
+ /** Style as the currently active action. */
39
+ active ?: boolean ;
40
+
34
41
/** Primary content. */
35
42
children ?: React . ReactNode ;
36
43
37
44
/** Additional classes. */
38
45
className ?: string ;
39
46
}
40
47
41
- export const CommentAuthor : React . ComponentClass < CommentAuthorProps > ;
48
+ export const CommentAction : React . ComponentClass < CommentActionProps > ;
42
49
43
- interface CommentActionProps {
44
- /** Style as the currently active action. */
45
- active ?: boolean ;
50
+ interface CommentActionsProps {
51
+ [ key : string ] : any ;
46
52
47
53
/** An element type to render as (string or function). */
48
54
as ?: any ;
@@ -54,11 +60,13 @@ interface CommentActionProps {
54
60
className ?: string ;
55
61
}
56
62
57
- export const CommentAction : React . ComponentClass < CommentActionProps > ;
63
+ export const CommentActions : React . StatelessComponent < CommentActionsProps > ;
64
+
65
+ interface CommentAuthorProps {
66
+ [ key : string ] : any ;
58
67
59
- interface CommentActionsProps {
60
68
/** An element type to render as (string or function). */
61
- as ?: any ;
69
+ as ?: any ;
62
70
63
71
/** Primary content. */
64
72
children ?: React . ReactNode ;
@@ -67,9 +75,11 @@ interface CommentActionsProps {
67
75
className ?: string ;
68
76
}
69
77
70
- export const CommentActions : React . ComponentClass < CommentActionsProps > ;
78
+ export const CommentAuthor : React . StatelessComponent < CommentAuthorProps > ;
71
79
72
80
interface CommentAvatarProps {
81
+ [ key : string ] : any ;
82
+
73
83
/** An element type to render as (string or function). */
74
84
as ?: any ;
75
85
@@ -80,9 +90,11 @@ interface CommentAvatarProps {
80
90
src ?: string ;
81
91
}
82
92
83
- export const CommentAvatar : React . ComponentClass < CommentAvatarProps > ;
93
+ export const CommentAvatar : React . StatelessComponent < CommentAvatarProps > ;
84
94
85
95
interface CommentContentProps {
96
+ [ key : string ] : any ;
97
+
86
98
/** An element type to render as (string or function). */
87
99
as ?: any ;
88
100
@@ -93,9 +105,11 @@ interface CommentContentProps {
93
105
className ?: string ;
94
106
}
95
107
96
- export const CommentContent : React . ComponentClass < CommentContentProps > ;
108
+ export const CommentContent : React . StatelessComponent < CommentContentProps > ;
97
109
98
110
interface CommentGroupProps {
111
+ [ key : string ] : any ;
112
+
99
113
/** An element type to render as (string or function). */
100
114
as ?: any ;
101
115
@@ -115,9 +129,10 @@ interface CommentGroupProps {
115
129
threaded ?: boolean ;
116
130
}
117
131
118
- export const CommentGroup : React . ComponentClass < CommentGroupProps > ;
132
+ export const CommentGroup : React . StatelessComponent < CommentGroupProps > ;
119
133
120
134
interface CommentMetadataProps {
135
+ [ key : string ] : any ;
121
136
122
137
/** An element type to render as (string or function). */
123
138
as ?: any ;
@@ -129,9 +144,10 @@ interface CommentMetadataProps {
129
144
className ?: string ;
130
145
}
131
146
132
- export const CommentMetadata : React . ComponentClass < CommentMetadataProps > ;
147
+ export const CommentMetadata : React . StatelessComponent < CommentMetadataProps > ;
133
148
134
149
interface CommentTextProps {
150
+ [ key : string ] : any ;
135
151
136
152
/** An element type to render as (string or function). */
137
153
as ?: any ;
@@ -143,4 +159,4 @@ interface CommentTextProps {
143
159
className ?: string ;
144
160
}
145
161
146
- export const CommentText : React . ComponentClass < CommentTextProps > ;
162
+ export const CommentText : React . StatelessComponent < CommentTextProps > ;
0 commit comments