mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
20 lines
606 B
TypeScript
20 lines
606 B
TypeScript
// ---------------------------
|
|
// stores/ClientChatStore.ts (root)
|
|
// ---------------------------
|
|
import { types, type Instance } from 'mobx-state-tree';
|
|
|
|
import { MessagesStore } from './MessagesStore';
|
|
import { ModelStore } from './ModelStore';
|
|
import { StreamStore } from './StreamStore';
|
|
import { UIStore } from './UIStore';
|
|
|
|
export const ClientChatStore = types
|
|
.compose(MessagesStore, UIStore, ModelStore, StreamStore)
|
|
.named('ClientChatStore');
|
|
|
|
const clientChatStore = ClientChatStore.create();
|
|
|
|
export type IClientChatStore = Instance<typeof ClientChatStore>;
|
|
|
|
export default clientChatStore;
|