Files
microdao-daarion/src/components/microdao/MicroDaoOrchestratorChatWrapper.tsx
Apple 744c149300
Some checks failed
Build and Deploy Docs / build-and-deploy (push) Has been cancelled
Add automated session logging system
- Created logs/ structure (sessions, operations, incidents)
- Added session-start/log/end scripts
- Installed Git hooks for auto-logging commits/pushes
- Added shell integration for zsh
- Created CHANGELOG.md
- Documented today's session (2026-01-10)
2026-01-10 04:53:17 -08:00

81 lines
1.7 KiB
TypeScript

/**
* Wrapper для вибору між базовим та розширеним чатом
*/
import React from 'react';
import { MicroDaoOrchestratorChat } from './MicroDaoOrchestratorChat';
import { MicroDaoOrchestratorChatEnhanced } from './MicroDaoOrchestratorChatEnhanced';
interface Orchestrator {
id: string;
name: string;
description?: string;
avatar?: string;
}
interface MicroDaoOrchestratorChatWrapperProps {
orchestrator?: Orchestrator;
orchestratorAgentId?: string;
onClose?: () => void;
enhanced?: boolean; // Якщо true - використовувати розширену версію
}
/**
* Wrapper компонент для вибору між базовим та розширеним чатом
*
* @example
* // Базовий чат
* <MicroDaoOrchestratorChatWrapper
* orchestratorAgentId="helion"
* enhanced={false}
* />
*
* @example
* // Розширений чат з усіма функціями
* <MicroDaoOrchestratorChatWrapper
* orchestratorAgentId="helion"
* enhanced={true}
* />
*/
export const MicroDaoOrchestratorChatWrapper: React.FC<MicroDaoOrchestratorChatWrapperProps> = ({
orchestrator,
orchestratorAgentId,
onClose,
enhanced = false,
}) => {
// Вибираємо версію чату на основі параметра
if (enhanced) {
return (
<MicroDaoOrchestratorChatEnhanced
orchestrator={orchestrator}
orchestratorAgentId={orchestratorAgentId}
onClose={onClose}
/>
);
}
return (
<MicroDaoOrchestratorChat
orchestrator={orchestrator}
orchestratorAgentId={orchestratorAgentId}
onClose={onClose}
/>
);
};