bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/help/component.jsx

45 lines
1.1 KiB
React
Raw Normal View History

2017-11-17 19:52:48 +08:00
import React, { Component } from 'react';
import Button from '/imports/ui/components/button/component';
import { injectIntl, defineMessages } from 'react-intl';
2018-01-08 14:17:18 +08:00
import { styles } from './styles';
2017-11-17 19:52:48 +08:00
const intlMessages = defineMessages({
descriptionHelp: {
id: 'app.audioModal.helpText',
description: 'Text decription for the audio help',
},
backLabel: {
id: 'app.audio.backLabel',
description: 'audio settings back button label',
}
})
class Help extends Component {
render() {
const {
intl,
handleBack,
} = this.props;
return (
<span className={styles.help}>
<div className={styles.text}>
{ intl.formatMessage(intlMessages.descriptionHelp) }
</div>
<div className={styles.enterAudio}>
<Button
className={styles.backBtn}
label={intl.formatMessage(intlMessages.backLabel)}
size={'md'}
color={'primary'}
onClick={handleBack}
ghost
/>
</div>
</span>
)
}
};
export default injectIntl(Help);