 Translate = require 'react-translate-component'
 Avatar = require '../partials/avatar'
 TriggeredModalForm = require 'modal-form/triggered'
+Router = require '@edpaget/react-router'
 
 UP = 38
 DOWN = 40


module.exports = React.createClass
  displayName: 'AccountBar'

  propTypes:
    user: React.PropTypes.object.isRequired


  handleSignOutClick: ->
    auth.signOut()

    if @getPathname().indexOf("lab") > -1 and @getParams()?
      @transitionTo "lab" 
