1 import { Component } from "inferno";
2 import { CommentNode as CommentNodeI } from "../interfaces";
3 import { CommunityModeratorView, PersonViewSafe } from "lemmy-js-client";
4 import { CommentNode } from "./comment-node";
6 interface CommentNodesProps {
8 moderators?: CommunityModeratorView[];
9 admins?: PersonViewSafe[];
10 postCreatorId?: number;
16 showContext?: boolean;
17 showCommunity?: boolean;
18 enableDownvotes: boolean;
21 export class CommentNodes extends Component<CommentNodesProps, any> {
22 constructor(props: any, context: any) {
23 super(props, context);
28 <div className="comments">
29 {this.props.nodes.map(node => (
31 key={node.comment_view.comment.id}
33 noBorder={this.props.noBorder}
34 noIndent={this.props.noIndent}
35 viewOnly={this.props.viewOnly}
36 locked={this.props.locked}
37 moderators={this.props.moderators}
38 admins={this.props.admins}
39 postCreatorId={this.props.postCreatorId}
40 markable={this.props.markable}
41 showContext={this.props.showContext}
42 showCommunity={this.props.showCommunity}
43 enableDownvotes={this.props.enableDownvotes}