refactor(conversation): extract default views component

This commit is contained in:
imccyu committed 2026-09-11 17:34:27 +08:00
1 parent 8f5b1d71e3
commit f4dbec93df
1 file changed
+5 -1
@@ -165,7 +165,11 @@ export function ConversationSessionHeader({
* @param props - Strict Session input/store, view ledger, and render shares.
* @returns the active view area, or null while the Session remains blank.
*/
export function ConversationSession({
export function ConversationSession(props: ConversationSessionProps) {
return <DefaultConversationViews {...props} />
}
function DefaultConversationViews({
useSession, useConversation, useConversationViews, useInput, inputActions, useStore, actions,
renderSlot, bindDraftMirror, openView,
}: ConversationSessionProps) {