 ProfileText          = require 'app/components/profile/profiletext'
 ProfileLinkContainer = require 'app/components/profile/profilelinkcontainer'
 ButtonWithMenu       = require 'app/components/buttonwithmenu'
+ActivityPromptModal  = require 'app/components/activitypromptmodal'
 ActivityLikeLink     = require 'activity/components/chatlistitem/activitylikelink'
 MessageTime          = require 'activity/components/chatlistitem/messagetime'
 keycode              = require 'keycode'
+ActivityFlux         = require 'activity/flux'
 
 module.exports = class ChatListItem extends React.Component
 


  getMenuItems: ->
    return [
      {title: 'Edit Post',   key: 'editpost',  onClick: @bound 'editPost'}
      {title: 'Delete Post', key: 'deletepost', onClick: @bound 'deletePost'}
      {title: 'Mark User as Troll', key: 'markuser', onClick: @bound 'markUser'}
      {title: 'Block User', key: 'blockuser', onClick: @bound 'blockUser'}
      {title: 'impersonate User', key: 'impersonate', onClick: @bound 'impersonate'}
    ]


  editPost: ->

    key  = keycode code

    @setState editMode: no if key is 'esc'

    if key is 'enter'

      @setState editMode: no
      ActivityFlux.actions.message.editMessage @props.message.get('id'), event.target.value


  render: ->
