  * @param {Immutable.OrderedMap<string, JAccount>} accounts
  * @return {object} list
 ###
-createMoreListFromAccounts = (accounts) ->
+createMoreListFromAccounts = (title, accounts) ->
+
+  titleItem =
+    type      : 'customView'
+    cssClass  : 'moreList-titleItem'
+    view      : k 'div', 'moreList-title', title
+    separator : yes
 
   createAvatar = (acc) ->
     k 'div', 'moreList-singleItemAvatar', [

  ###
  createContextMenu: (event) ->

    options = @getOptions()
    @buttonMenu = new kd.JButtonMenu
      cssClass : options.style
      ghost    : @$('.chevron').clone()
      event    : event
      delegate : this
    , options.menu()

    @buttonMenu.on "ContextMenuItemReceivedClick", => @buttonMenu.destroy()


      new ProfileTextView {}, acc
    ]

  initialItems = { Title: titleItem }

  items = accounts.toJS().reduce (transformedAccounts, account) ->
    transformedAccounts[account.profile.nickname] =
      type : 'customView'
      view : k 'div', 'moreList-singleItem', [
        createAvatar account
        createName account
      ]
    return transformedAccounts
  , initialItems

  return items


###*
