import { Component } from 'react'; import { inject, observer } from 'mobx-react'; import { StoresProps } from '../../../@types/ferdium-components.types'; import WorkspacesDashboard from '../components/WorkspacesDashboard'; import ErrorBoundary from '../../../components/util/ErrorBoundary'; import { workspaceStore } from '../index'; import { createWorkspaceRequest, deleteWorkspaceRequest, getUserWorkspacesRequest, updateWorkspaceRequest, } from '../api'; class WorkspacesScreen extends Component { render() { const { actions } = this.props; return ( actions.workspaces.create(data)} onWorkspaceClick={w => actions.workspaces.edit({ workspace: w })} /> ); } } export default inject('stores', 'actions')(observer(WorkspacesScreen));