// @flow import React from 'react'; import { observer, inject } from 'mobx-react'; import { withRouter } from 'react-router'; import { Flex } from 'reflexbox'; import DashboardStore from './DashboardStore'; import Layout from 'components/Layout'; import AtlasPreview from 'components/AtlasPreview'; import AtlasPreviewLoading from 'components/AtlasPreviewLoading'; import CenteredContent from 'components/CenteredContent'; type Props = { user: Object, router: Object, }; @withRouter @inject('user') @observer class Dashboard extends React.Component { props: Props; store: DashboardStore; constructor(props: Props) { super(props); this.store = new DashboardStore({ team: props.user.team, router: props.router, }); } render() { return ( {this.store.isFetching ? : this.store.collections && this.store.collections.map(collection => { return ( ); })} ); } } export default Dashboard;