You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LobbyChatScreen.js 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import React from 'react';
  2. import { translate } from '../../../base/i18n';
  3. import JitsiScreen from '../../../base/modal/components/JitsiScreen';
  4. import { connect } from '../../../base/redux';
  5. import ChatInputBar from '../../../chat/components/native/ChatInputBar';
  6. import MessageContainer from '../../../chat/components/native/MessageContainer';
  7. import AbstractLobbyScreen, {
  8. Props as AbstractProps,
  9. _mapStateToProps as abstractMapStateToProps
  10. } from '../AbstractLobbyScreen';
  11. import styles from './styles';
  12. /**
  13. * Implements a chat screen that appears when communication is started
  14. * between the moderator and the participant being in the lobby.
  15. */
  16. class LobbyChatScreen extends
  17. AbstractLobbyScreen<AbstractProps> {
  18. /**
  19. * Implements React's {@link Component#render()}.
  20. *
  21. * @inheritdoc
  22. * @returns {ReactElement}
  23. */
  24. render() {
  25. const { _lobbyChatMessages } = this.props;
  26. return (
  27. <JitsiScreen style = { styles.lobbyChatWrapper }>
  28. <MessageContainer messages = { _lobbyChatMessages } />
  29. <ChatInputBar onSend = { this._onSendMessage } />
  30. </JitsiScreen>
  31. );
  32. }
  33. _onSendMessage: () => void;
  34. }
  35. export default translate(connect(abstractMapStateToProps)(LobbyChatScreen));