2022-12-27 13:10:09 +03:00

25 lines
731 B
TypeScript

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