 CommentReportForm = require './comment-report-form'
 CommentLink = require './comment-link'
 upvotedByCurrentUser = require './lib/upvoted-by-current-user'
-PromiseRenderer = require '../components/promise-renderer'
 {Link} = require 'react-router'
 {timestamp} = require './lib/time'
 apiClient = require 'panoptes-client/lib/api-client'

    editing: false
    commentValidationErrors: []
    replies: []

  contextTypes:
    geordi: React.PropTypes.object

  logItemClick: (itemClick) ->
    @context.geordi?.logEvent
      type: itemClick

  componentWillMount: ->
    apiClient
      .type 'users'
      .get
        id: @props.data.user_id
      .index 0
      .then (commentOwner) =>
        @setState {commentOwner}
    
    if @props.data.focus_id
      apiClient
        .type 'subjects'
        .get @props.data.focus_id
        .then (subject) =>
          @setState {subject}

    talkClient
      .type 'roles'
      .get
        user_id: @props.data.user_id
        section: ['zooniverse', @props.data.section]
        is_shown: true
        page_size: 100
      .then (roles) =>
        @setState {roles}

  componentDidMount: ->
    if @props.active
