bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/audio-test/component.jsx
2017-06-02 19:25:02 +00:00

37 lines
790 B
JavaScript
Executable File

import React from 'react';
import Button from '/imports/ui/components/button/component';
import styles from './styles.scss';
import { defineMessages, injectIntl } from 'react-intl';
class AudioTest extends React.Component {
constructor(props) {
super(props);
}
render() {
const {
intl,
} = this.props;
return (
<Button
className={styles.testAudioBtn}
label={intl.formatMessage(intlMessages.playSoundLabel)}
icon={'unmute'}
size={'sm'}
color={'primary'}
onClick={this.props.handlePlayAudioSample}
/>
);
}
}
const intlMessages = defineMessages({
playSoundLabel: {
id: 'app.audio.playSoundLabel',
description: 'Play sound button label',
},
});
export default injectIntl(AudioTest);