 
   switchSideBar: ->
     @setState priority: (if @state.priority is 'right' then 'left' else 'right')
-
-  onErrorToastClose: -> @props.route.App.emit 'clear error message'
-  onInfoToastClose: -> @props.route.App.emit 'clear info message'
 
   render: ->
     <G.App centered=false>

      }
    </G.App>

mapStateToProps = (state) ->
  errorMessage: null
  infoMessage: null
  isLoggedIn: state.user?

module.exports = connect(mapStateToProps) App

# module.exports = createContainer (props) ->
#   errorMessage: props..globalErrorMessage()

        {@props.children}
      </G.Split>
      {if errorMessage = @props.errorMessage
        <G.Toast status='critical' onClose={@props.onErrorToastClose}>
          {errorMessage}
        </G.Toast>
      }
