// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. var UserStore = require('../stores/user_store.jsx'); var client = require('../utils/client.jsx'); module.exports = React.createClass({ handleLogoutClick: function(e) { e.preventDefault(); client.logout(); }, render: function() { var team_link = ""; var invite_link = ""; var manage_link = ""; var rename_link = ""; var currentUser = UserStore.getCurrentUser() var isAdmin = false; if (currentUser != null) { isAdmin = currentUser.roles.indexOf("admin") > -1; invite_link = (