import React, { PureComponent } from 'react' import CommentItem, { CommentItemData } from './CommentItem'; import { Divider } from 'antd'; import styles from './CommentList.less'; interface IP { list: Array; topDivider: boolean; onChangeListItem({ commentId, changeProp }: { commentId: string; changeProp: any; }): any; } interface IS { } export default class CommentList extends PureComponent { render() { return (
{this.props.topDivider ? : null} {this.props.list.map((i, index) => { return ( <> {index === this.props.list.length - 1 ? null : } ) })}
) } }