     onClose            : @bound "closeBlockUserPromptModal"
 
 
+  getDeleteItemModalProps: ->
+
+    title              : "Delete post"
+    body               : "Are you sure you want to delete this post?"
+    buttonConfirmTitle : "DELETE"
+    className          : "Modal-DeleteItemPrompt"
+    onConfirm          : @bound "deletePostButtonHandler"
+    onAbort            : @bound "closeDeletePostModal"
+    onClose            : @bound "closeDeletePostModal"
+
+
+  getMarkUserAsTrollModalProps: ->
+
+    account            : @state.account
+    title              : "MARK USER AS TROLL"
+    className          : "MarkUserAsTrollModal"
+    onAbort            : @bound "closeMarkUserAsTrollModal"
+    onClose            : @bound "closeMarkUserAsTrollModal"
+    buttonConfirmTitle : "YES, THIS USER IS DEFINITELY A TROLL"
+
+
   getMenuItems: ->
 
     if checkFlag('super-admin')

        <BlockUserModal
          {...@getBlockUserModalProps()}
          isOpen={@state.isBlockUserModalVisible} />
      </div>

    @setState isBlockUserModalVisible: no


  showDeletePostPromptModal: ->

    @setState isDeleting: yes


  closeDeletePostModal: (event) ->

    kd.utils.stopDOMEvent event
    @setState isDeleting: no


  showMarkUserAsTrollPromptModal: ->

    @setState isMarkUserAsTrollModalVisible: yes


  closeMarkUserAsTrollModal: (event) ->

    kd.utils.stopDOMEvent event
    @setState isMarkUserAsTrollModalVisible: no


  unMarkUserAsTroll: (event) ->

    kd.utils.stopDOMEvent event
    AppFlux.actions.user.unmarkUserAsTroll @state.account
    @closeMarkUserAsTrollModal()


  editPost: ->

    messageId = @props.message.get '_id'

    ActivityFlux.actions.message.setMessageEditMode messageId, @props.channelId


  deletePostButtonHandler: (event) ->

    kd.utils.stopDOMEvent event
    ActivityFlux.actions.message.removeMessage @props.message.get('id')
    @closeDeletePostModal()


  impersonateUser: (event) ->

    kd.utils.stopDOMEvent event
    { message } = @props

    AppFlux.actions.user.impersonateUser message.toJS()


  getBlockUserModalProps: ->

    account            : @state.account
