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

Header.js 749B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // @flow
  2. import React from 'react';
  3. import { translate } from '../../../../base/i18n';
  4. import { Icon, IconClose } from '../../../../base/icons';
  5. type Props = {
  6. /**
  7. * The {@link ModalDialog} closing function.
  8. */
  9. onClose: Function,
  10. /**
  11. * Invoked to obtain translated strings.
  12. */
  13. t: Function
  14. };
  15. /**
  16. * Custom header of the {@code AddPeopleDialog}.
  17. *
  18. * @returns {React$Element<any>}
  19. */
  20. function Header({ onClose, t }: Props) {
  21. return (
  22. <div
  23. className = 'invite-more-dialog header'>
  24. { t('addPeople.inviteMorePrompt') }
  25. <Icon
  26. onClick = { onClose }
  27. src = { IconClose } />
  28. </div>
  29. );
  30. }
  31. export default translate(Header);