plane/apps/app/store/root.ts

24 lines
622 B
TypeScript
Raw Normal View History

// mobx lite
import { enableStaticRendering } from "mobx-react-lite";
// store imports
import UserStore from "./user";
import ThemeStore from "./theme";
2023-08-16 11:23:39 +00:00
import LabelStore from "./label";
import ProjectPublishStore, { IProjectPublishStore } from "./project-publish";
enableStaticRendering(typeof window === "undefined");
export class RootStore {
user;
theme;
2023-08-16 11:23:39 +00:00
label: LabelStore;
projectPublish: IProjectPublishStore;
constructor() {
this.user = new UserStore(this);
this.theme = new ThemeStore(this);
2023-08-16 11:23:39 +00:00
this.label = new LabelStore(this);
this.projectPublish = new ProjectPublishStore(this);
}
}