import React from 'react'; import PropTypes from 'prop-types'; import Button from '/imports/ui/components/button/component'; import { defineMessages, injectIntl } from 'react-intl'; import { styles } from './styles.scss'; const propTypes = { intl: PropTypes.object.isRequired, handlePlayAudioSample: PropTypes.func.isRequired, outputDeviceId: PropTypes.string, }; const defaultProps = { outputDeviceId: null, }; const intlMessages = defineMessages({ playSoundLabel: { id: 'app.audio.playSoundLabel', description: 'Play sound button label', }, }); class AudioTest extends React.Component { constructor(props) { super(props); this.handlePlayAudioSample = props.handlePlayAudioSample.bind(this); } render() { const { outputDeviceId, intl, } = this.props; return (