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

36 lines
804 B
React
Raw Normal View History

2016-12-06 00:21:55 +08:00
import React from 'react';
import Button from '/imports/ui/components/button/component';
import styles from '../settings/styles.scss';
2017-02-17 03:47:12 +08:00
import { defineMessages, injectIntl } from 'react-intl';
2016-12-06 00:21:55 +08:00
2017-02-17 03:47:12 +08:00
class AudioTest extends React.Component {
2016-12-06 00:21:55 +08:00
constructor(props) {
super(props);
}
render() {
2017-02-17 03:47:12 +08:00
const {
intl,
} = this.props;
2016-12-06 09:37:46 +08:00
return (
2017-02-17 03:47:12 +08:00
<Button className={styles.testAudioBtn}
label={intl.formatMessage(intlMessages.playSoundLabel)}
icon={'audio'}
size={'md'}
color={'primary'}
ghost={true}
onClick={this.props.handlePlayAudioSample}
/>
2016-12-06 00:21:55 +08:00
);
}
};
2017-02-17 03:47:12 +08:00
const intlMessages = defineMessages({
playSoundLabel: {
id: 'app.audio.playSoundLabel',
},
});
export default injectIntl(AudioTest);