// @flow import React from 'react'; import { observer, inject } from 'mobx-react'; import { Flex } from 'reflexbox'; import CollectionsStore from 'stores/CollectionsStore'; import Collection from 'components/Collection'; import PreviewLoading from 'components/PreviewLoading'; import CenteredContent from 'components/CenteredContent'; type Props = { collections: CollectionsStore, }; @observer class Dashboard extends React.Component { props: Props; render() { const { collections } = this.props; return ( {!collections.isLoaded ? : collections.data.map(collection => ( ))} ); } } export default inject('collections')(Dashboard);