File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
packages/jupyter-chat/src/widgets Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 33 * Distributed under the terms of the Modified BSD License.
44 */
55
6- import { ReactWidget } from '@jupyterlab/apputils' ;
7- import React from 'react' ;
8-
96import { Chat } from '../components/chat' ;
107import { chatIcon } from '../icons' ;
8+ import { ChatWidget } from './chat-widget' ;
119
12- export function buildChatSidebar ( options : Chat . IOptions ) : ReactWidget {
13- const ChatWidget = ReactWidget . create ( < Chat { ... options } /> ) ;
14- ChatWidget . id = 'jupyter-chat::side-panel' ;
15- ChatWidget . title . icon = chatIcon ;
16- ChatWidget . title . caption = 'Jupyter Chat' ; // TODO: i18n
17- return ChatWidget ;
10+ export function buildChatSidebar ( options : Chat . IOptions ) : ChatWidget {
11+ const widget = new ChatWidget ( options ) ;
12+ widget . id = 'jupyter-chat::side-panel' ;
13+ widget . title . icon = chatIcon ;
14+ widget . title . caption = 'Jupyter Chat' ; // TODO: i18n
15+ return widget ;
1816}
You can’t perform that action at this time.
0 commit comments