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.

ChatDialog.js 771B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // @flow
  2. import React from 'react';
  3. import { Dialog } from '../../../base/dialog';
  4. import Header from './ChatDialogHeader';
  5. type Props = {
  6. /**
  7. * Children of the component.
  8. */
  9. children: React$Node
  10. }
  11. /**
  12. * Component that renders the content of the chat in a modal.
  13. *
  14. * @returns {React$Element<any>}
  15. */
  16. function ChatDialog({ children }: Props) {
  17. return (
  18. <Dialog
  19. customHeader = { Header }
  20. disableEnter = { true }
  21. disableFooter = { true }
  22. hideCancelButton = { true }
  23. submitDisabled = { true }
  24. titleKey = 'chat.title'>
  25. <div className = 'chat-dialog'>
  26. {children}
  27. </div>
  28. </Dialog>
  29. );
  30. }
  31. export default ChatDialog;