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

ConferenceID.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // @flow
  2. import React, { Component } from 'react';
  3. import { translate } from '../../../../base/i18n';
  4. /**
  5. * The type of the React {@code Component} props of {@link ConferenceID}.
  6. */
  7. type Props = {
  8. /**
  9. * The conference ID for dialing in.
  10. */
  11. conferenceID: number,
  12. /**
  13. * The name of the conference.
  14. */
  15. conferenceName: ?string,
  16. /**
  17. * Invoked to obtain translated strings.
  18. */
  19. t: Function
  20. };
  21. /**
  22. * Displays a conference ID used as a pin for dialing into a conference.
  23. *
  24. * @extends Component
  25. */
  26. class ConferenceID extends Component<Props> {
  27. /**
  28. * Implements React's {@link Component#render()}.
  29. *
  30. * @inheritdoc
  31. * @returns {ReactElement}
  32. */
  33. render() {
  34. const { conferenceID, conferenceName, t } = this.props;
  35. return (
  36. <div className = 'dial-in-conference-id'>
  37. <div className = 'dial-in-conference-name'>
  38. { conferenceName }
  39. </div>
  40. <div className = 'dial-in-conference-description'>
  41. { t('info.dialANumber') }
  42. </div>
  43. <div className = 'dial-in-conference-pin'>
  44. { `${t('info.dialInConferenceID')} ${conferenceID}` }
  45. </div>
  46. </div>
  47. );
  48. }
  49. }
  50. export default translate(ConferenceID);