import React from 'react'; import { throttle } from '../../util/helpers'; export default class VolumeControl extends React.Component { constructor(props) { super(props); this.handleChange = throttle(this.handleChange.bind(this), 100); } handleChange(value) { this.props.onVolumeChange(value, this.props.volume); } render() { const { className, mute, volume, vertical, } = this.props; let sliderClassName = 'slider slider--volume'; if (mute) sliderClassName += ' slider--muted'; return (