import React from 'react'; import { observer } from 'mobx-react'; import { Flex } from 'reflexbox'; import { Input, ButtonOutline, InlineForm } from 'rebass'; import Layout, { Title } from 'components/Layout'; import CenteredContent from 'components/CenteredContent'; import SlackAuthLink from 'components/SlackAuthLink'; import ApiKeyRow from './components/ApiKeyRow'; import styles from './Settings.scss'; import SettingsStore from './SettingsStore'; @observer class Settings extends React.Component { static store; constructor(props) { super(props); this.store = new SettingsStore(); } onKeyCreate = e => { e.preventDefault(); this.store.createApiKey(); }; render() { const title = ( Settings ); const showSlackSettings = DEPLOYMENT === 'hosted'; return ( {showSlackSettings &&

Slack

Connect Atlas to your Slack to instantly search for your documents using /atlas command.

Add to Slack
}

API access

Create API tokens to hack on your Atlas. Learn more in API documentation.

{this.store.apiKeys && {this.store.apiKeys.map(key => ( ))}
}
); } } export default Settings;