您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ChatDialog.js 734B

12345678910111213141516171819202122232425262728293031323334353637
  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. hideCancelButton = { true }
  22. submitDisabled = { true }
  23. titleKey = 'chat.title'>
  24. <div className = 'chat-dialog'>
  25. {children}
  26. </div>
  27. </Dialog>
  28. );
  29. }
  30. export default ChatDialog;