import CalculationStore from './calculation'; import type { ProcessStore } from './process'; import createProcessStore from './process'; import ResultsStore from './results'; import TablesStore from './tables'; import { enableStaticRendering } from 'mobx-react-lite'; import { isServer } from 'tools/common'; enableStaticRendering(isServer()); export default class RootStore { public $calculation: CalculationStore; public $results: ResultsStore; public $tables: TablesStore; public $process: ProcessStore; constructor() { this.$calculation = new CalculationStore(this); this.$results = new ResultsStore(this); this.$tables = new TablesStore(this); this.$process = createProcessStore(); } }