import React, { PureComponent } from 'react'
import CommentItem, { CommentItemData } from './CommentItem'

interface IP {
  list: Array<CommentItemData>
}

interface IS {

}

export default class CommentList extends PureComponent<IP, IS> {
  render() {
    return (
      <div>
        {this.props.list.map(i => <CommentItem data={i} />)}
      </div>
    )
  }
}
