import React, { Component } from 'react'

export interface CommentItemData {
  content: string;
  created: number;
  favor_count: number;
  favored: boolean;
  id: string;
  is_speak: boolean;
  medias: any;
  replies: Array<any>
  reply_count: number;
  user_avatar: string;
  user_id: number;
  user_name: string;
}

interface IP {
  data: CommentItemData;
}

interface IS {}

export default class CommentItem extends Component<IP, IS> {
  render() {
    console.log(this.props.data.content);
    return (
      <div>
        {
          this.props.data.content
        }
      </div>
    )
  }
}
