2018-10-30 05:02:23 +00:00
|
|
|
/* @flow */
|
|
|
|
|
2018-02-13 19:46:47 +00:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
import { translate } from '../../../base/i18n';
|
|
|
|
|
|
|
|
/**
|
2018-10-30 05:02:23 +00:00
|
|
|
* The type of the React {@code Component} props of {@link DialInNumber}.
|
2018-02-13 19:46:47 +00:00
|
|
|
*/
|
2018-10-30 05:02:23 +00:00
|
|
|
type Props = {
|
|
|
|
|
2018-02-13 19:46:47 +00:00
|
|
|
/**
|
2018-10-30 05:02:23 +00:00
|
|
|
* The numberic identifier for the current conference, used after dialing a
|
|
|
|
* the number to join the conference.
|
2018-02-13 19:46:47 +00:00
|
|
|
*/
|
2018-10-30 05:02:23 +00:00
|
|
|
conferenceID: number,
|
2018-02-13 19:46:47 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* The phone number to dial to begin the process of dialing into a
|
|
|
|
* conference.
|
|
|
|
*/
|
|
|
|
phoneNumber: string,
|
2018-02-13 19:46:47 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* Invoked to obtain translated strings.
|
|
|
|
*/
|
|
|
|
t: Function
|
|
|
|
};
|
2018-02-13 19:46:47 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* React {@code Component} responsible for displaying a telephone number and
|
|
|
|
* conference ID for dialing into a conference.
|
|
|
|
*
|
|
|
|
* @extends Component
|
|
|
|
*/
|
|
|
|
class DialInNumber extends Component<Props> {
|
2018-02-13 19:46:47 +00:00
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
2018-04-04 15:58:54 +00:00
|
|
|
const { conferenceID, phoneNumber, t } = this.props;
|
2018-02-13 19:46:47 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className = 'dial-in-number'>
|
|
|
|
<span className = 'phone-number'>
|
2018-04-04 15:58:54 +00:00
|
|
|
<span className = 'info-label'>
|
|
|
|
{ t('info.dialInNumber') }
|
|
|
|
</span>
|
|
|
|
<span className = 'spacer'> </span>
|
|
|
|
<span className = 'info-value'>
|
|
|
|
{ phoneNumber }
|
|
|
|
</span>
|
2018-02-13 19:46:47 +00:00
|
|
|
</span>
|
2018-04-04 15:58:54 +00:00
|
|
|
<span className = 'spacer'> </span>
|
2018-02-13 19:46:47 +00:00
|
|
|
<span className = 'conference-id'>
|
2018-04-04 15:58:54 +00:00
|
|
|
<span className = 'info-label'>
|
|
|
|
{ t('info.dialInConferenceID') }
|
|
|
|
</span>
|
|
|
|
<span className = 'spacer'> </span>
|
|
|
|
<span className = 'info-value'>
|
|
|
|
{ `${conferenceID}#` }
|
|
|
|
</span>
|
2018-02-13 19:46:47 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default translate(DialInNumber);
|