MCPcopy Create free account
hub / github.com/dharness/react-chat-window / render

Method render

src/components/ChatWindow.js:21–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 }
20
21 render() {
22 let messageList = this.props.messageList || [];
23 let classList = [
24 'sc-chat-window',
25 (this.props.isOpen ? 'opened' : 'closed')
26 ];
27 return (
28 <div className={classList.join(' ')}>
29 <Header
30 teamName={this.props.agentProfile.teamName}
31 imageUrl={this.props.agentProfile.imageUrl}
32 onClose={this.props.onClose}
33 />
34 <MessageList
35 messages={messageList}
36 imageUrl={this.props.agentProfile.imageUrl}
37 />
38 <UserInput
39 onSubmit={this.onUserInputSubmit.bind(this)}
40 onFilesSelected={this.onFilesSelected.bind(this)}
41 showEmoji={this.props.showEmoji}
42 />
43 </div>
44 );
45 }
46}
47
48ChatWindow.propTypes = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected