diff --git a/packages/chat/src/views/ChatWidget/index.tsx b/packages/chat/src/views/ChatWidget/index.tsx index e21218371..aaf06f905 100644 --- a/packages/chat/src/views/ChatWidget/index.tsx +++ b/packages/chat/src/views/ChatWidget/index.tsx @@ -20,9 +20,10 @@ interface ChatWidgetProps extends React.PropsWithChildren { shadowRoot?: ShadowRoot; chatAPI: VoiceflowChat | undefined; ready?: () => void; + chatWindow?: React.ReactNode; } -export const ChatWidget: React.FC = ({ shadowRoot, chatAPI, ready }) => { +export const ChatWidget: React.FC = ({ shadowRoot, chatAPI, ready, chatWindow }) => { const { assistant, open, close, interact } = useContext(RuntimeStateAPIContext); const { isOpen } = useContext(RuntimeStateContext); @@ -86,7 +87,7 @@ export const ChatWidget: React.FC = ({ shadowRoot, chatAPI, rea } > {!showChatWindow &&
} - {showChatWindow && } + {showChatWindow && (chatWindow ?? )}
);