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.

DialInSection.js 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // @flow
  2. import React from 'react';
  3. import { translate } from '../../../../base/i18n';
  4. import { getDialInfoPageURL } from '../../../functions';
  5. import DialInNumber from './DialInNumber';
  6. type Props = {
  7. /**
  8. * The name of the current conference. Used as part of inviting users.
  9. */
  10. conferenceName: string,
  11. /**
  12. * The object representing the dialIn feature.
  13. */
  14. dialIn: Object,
  15. /**
  16. * The current location url of the conference.
  17. */
  18. locationUrl: Object,
  19. /**
  20. * The phone number to dial to begin the process of dialing into a
  21. * conference.
  22. */
  23. phoneNumber: string,
  24. /**
  25. * Invoked to obtain translated strings.
  26. */
  27. t: Function
  28. };
  29. /**
  30. * Returns a ReactElement for showing how to dial into the conference, if
  31. * dialing in is available.
  32. *
  33. * @private
  34. * @returns {null|ReactElement}
  35. */
  36. function DialInSection({
  37. conferenceName,
  38. dialIn,
  39. locationUrl,
  40. phoneNumber,
  41. t
  42. }: Props) {
  43. return (
  44. <div className = 'invite-more-dialog dial-in-display'>
  45. <DialInNumber
  46. conferenceID = { dialIn.conferenceID }
  47. phoneNumber = { phoneNumber } />
  48. <a
  49. className = 'more-numbers'
  50. href = {
  51. getDialInfoPageURL(
  52. conferenceName,
  53. locationUrl
  54. )
  55. }
  56. rel = 'noopener noreferrer'
  57. target = '_blank'>
  58. { t('info.moreNumbers') }
  59. </a>
  60. </div>
  61. );
  62. }
  63. export default translate(DialInSection);