import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, intlShape, injectIntl } from 'react-intl'; import Button from '/imports/ui/components/button/component'; import { styles } from './styles'; import cx from 'classnames'; const intlMessages = defineMessages({ joinAudio: { id: 'app.audio.joinAudio', description: 'Join audio button label', }, leaveAudio: { id: 'app.audio.leaveAudio', description: 'Leave audio button label', }, muteAudio: { id: 'app.actionsBar.muteLabel', description: 'Mute audio button label', }, unmuteAudio: { id: 'app.actionsBar.unmuteLabel', description: 'Unmute audio button label', }, }); const propTypes = { handleToggleMuteMicrophone: PropTypes.func.isRequired, handleJoinAudio: PropTypes.func.isRequired, handleLeaveAudio: PropTypes.func.isRequired, disable: PropTypes.bool.isRequired, unmute: PropTypes.bool.isRequired, mute: PropTypes.bool.isRequired, join: PropTypes.bool.isRequired, intl: intlShape.isRequired, }; const AudioControls = ({ handleToggleMuteMicrophone, handleJoinAudio, handleLeaveAudio, mute, unmute, disable, glow, join, intl, }) => ( {mute ?