2023-08-08 07:20:27 +00:00
|
|
|
// mobx lite
|
|
|
|
import { enableStaticRendering } from "mobx-react-lite";
|
|
|
|
// store imports
|
|
|
|
import UserStore from "./user";
|
|
|
|
import ThemeStore from "./theme";
|
2023-08-14 13:48:38 +00:00
|
|
|
import ProjectPublishStore, { IProjectPublishStore } from "./project-publish";
|
2023-08-08 07:20:27 +00:00
|
|
|
|
|
|
|
enableStaticRendering(typeof window === "undefined");
|
|
|
|
|
|
|
|
export class RootStore {
|
|
|
|
user;
|
|
|
|
theme;
|
2023-08-14 13:48:38 +00:00
|
|
|
projectPublish: IProjectPublishStore;
|
2023-08-08 07:20:27 +00:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.user = new UserStore(this);
|
|
|
|
this.theme = new ThemeStore(this);
|
2023-08-14 13:48:38 +00:00
|
|
|
this.projectPublish = new ProjectPublishStore(this);
|
2023-08-08 07:20:27 +00:00
|
|
|
}
|
|
|
|
}
|