1 import { Component } from 'inferno';
2 import { CommentNode as CommentNodeI, CommunityUser, UserView } from '../interfaces';
3 import { CommentNode } from './comment-node';
5 interface CommentNodesState {
8 interface CommentNodesProps {
9 nodes: Array<CommentNodeI>;
10 moderators?: Array<CommunityUser>;
11 admins?: Array<UserView>;
18 export class CommentNodes extends Component<CommentNodesProps, CommentNodesState> {
20 constructor(props: any, context: any) {
21 super(props, context);
26 <div className="comments">
27 {this.props.nodes.map(node =>
28 <CommentNode node={node}
29 noIndent={this.props.noIndent}
30 viewOnly={this.props.viewOnly}
31 locked={this.props.locked}
32 moderators={this.props.moderators}
33 admins={this.props.admins}
34 markable={this.props.markable}