// @flow import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import { ProfileIcon, SettingsIcon, CodeIcon, UserIcon } from 'outline-icons'; import Flex from 'shared/components/Flex'; import Sidebar, { Section } from './Sidebar'; import Scrollable from 'components/Scrollable'; import Header from './components/Header'; import SidebarLink from './components/SidebarLink'; import HeaderBlock from './components/HeaderBlock'; import AuthStore from 'stores/AuthStore'; type Props = { history: Object, auth: AuthStore, }; @observer class SettingsSidebar extends Component { props: Props; returnToDashboard = () => { this.props.history.push('/'); }; render() { const { team } = this.props.auth; if (!team) return; return (
Account
}> Profile }> API Tokens
Team
}> Users } > Integrations
); } } export default inject('auth')(SettingsSidebar);