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 3
3
* Distributed under the terms of the Modified BSD License.
4
4
*/
5
5
6
- import { ReactWidget } from '@jupyterlab/apputils' ;
7
- import React from 'react' ;
8
-
9
6
import { Chat } from '../components/chat' ;
10
7
import { chatIcon } from '../icons' ;
8
+ import { ChatWidget } from './chat-widget' ;
11
9
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 ;
18
16
}
You can’t perform that action at this time.
0 commit comments