1 import { Component } from 'inferno';
3 CommentNode as CommentNodeI,
6 } from '../interfaces';
7 import { CommentNode } from './comment-node';
9 interface CommentNodesState {}
11 interface CommentNodesProps {
12 nodes: Array<CommentNodeI>;
13 moderators?: Array<CommunityUser>;
14 admins?: Array<UserView>;
15 postCreatorId?: number;
22 export class CommentNodes extends Component<
26 constructor(props: any, context: any) {
27 super(props, context);
32 <div className="comments">
33 {this.props.nodes.map(node => (
36 noIndent={this.props.noIndent}
37 viewOnly={this.props.viewOnly}
38 locked={this.props.locked}
39 moderators={this.props.moderators}
40 admins={this.props.admins}
41 postCreatorId={this.props.postCreatorId}
42 markable={this.props.markable}