 PromiseToSetState = require '../lib/promise-to-set-state'
 Paginator = require './lib/paginator'
 Router = {Link} = require 'react-router'
+Loading = require '../components/loading-indicator'
 
 PAGE_SIZE = 10
 

    </div>

  render: ->
    {conversations, user} = @state
    <div className="inbox content-container">
      <h1>Inbox</h1>
      {if not user
         <p>Please sign in to view your inbox</p>
      else if conversations?.length
        <div>
          {conversations?.map(@conversationLink)}

    user: null
    conversations: []
    conversationsMeta: {}
    loading: true

  componentDidMount: ->
    @handleAuthChange()
