import React from 'react';
import Icon from '../Icon';
import * as helpers from '../../helpers';
export default class MuteControl extends React.Component{
constructor(props){
super(props);
}
render(){
if (this.props.mute){
return (
this.props.onMuteChange(false)}>
{this.props.noTooltip ? null : Unmute}
)
} else {
return (
this.props.onMuteChange(true)}>
{this.props.noTooltip ? null : Mute}
)
}
}
}