jiti-meet/react/features/invite/components/info-dialog/web/DialInNumber.js

73 lines
1.9 KiB
JavaScript
Raw Normal View History

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