mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
10 lines
500 B
TypeScript
10 lines
500 B
TypeScript
import type { ChatState } from "../../../../src/features/chat/application/state/root-reducer";
|
|
import { createChatPanelShellReadModelBinding } from "../../../../src/features/chat/panel/shell-read-model";
|
|
|
|
export function composerReadModelFromChatState(state: ChatState) {
|
|
return createChatPanelShellReadModelBinding(state).readModel.composer;
|
|
}
|
|
|
|
export function messageStreamReadModelFromChatState(state: ChatState) {
|
|
return createChatPanelShellReadModelBinding(state).readModel.messageStream;
|
|
}
|