import { Component } from 'inferno'; import { CommentSortType } from '../interfaces'; import { CommentNode as CommentNodeI, CommunityUser, UserView, SortType, } from 'lemmy-js-client'; import { commentSort, commentSortSortType } from '../utils'; import { CommentNode } from './comment-node'; interface CommentNodesState {} interface CommentNodesProps { nodes: CommentNodeI[]; moderators?: CommunityUser[]; admins?: UserView[]; postCreatorId?: number; noBorder?: boolean; noIndent?: boolean; viewOnly?: boolean; locked?: boolean; markable?: boolean; showContext?: boolean; showCommunity?: boolean; sort?: CommentSortType; sortType?: SortType; enableDownvotes: boolean; } export class CommentNodes extends Component< CommentNodesProps, CommentNodesState > { constructor(props: any, context: any) { super(props, context); } render() { return (