   private: 'panel-info'
   minimized: 'panel-success'
   published: 'panel-primary'
-Template.registerHelper 'messagePanelClass', ->
-  #console.log 'rendering', @_id, @
-  classes = []
-  classes.push mclass = messageClass.call @
-  classes.push panelClass[mclass]
-  if Template.instance().editing?.get()
-    classes.push 'editing'
-  classes.join ' '
 messagePanelClass = (message, editing) ->
   classes = []
   classes.push mclass = messageClass.call message

  </div>
RootHeader.displayName = 'RootHeader'

Template.registerHelper 'formatTitle', ->
  formatTitleOrFilename @, false

Template.registerHelper 'formatTitleOrUntitled', ->
  formatTitleOrFilename @, true

Template.registerHelper 'formatTitleBold', ->
  formatTitleOrFilename @, false, false, true

Template.registerHelper 'formatTitleOrUntitledBold', ->
  formatTitleOrFilename @, true, false, true

Template.registerHelper 'formatBody', ->
  formatBody @format, @body

Template.registerHelper 'formatFile', ->
  formatFile @

Template.messageBad.helpers
  message: -> Router.current().params.message

    classes.push 'editing'
  classes.join ' '

Template.registerHelper 'creator', ->
  displayUser @creator

KeyboardSelector = React.memo ({messageID, tabindex}) ->
  keyboard = useTracker ->
