import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class GasSlider extends Component { static propTypes = { onChange: PropTypes.func, lowLabel: PropTypes.string, highLabel: PropTypes.string, value: PropTypes.number, step: PropTypes.number, max: PropTypes.number, min: PropTypes.number, }; render() { const { onChange, lowLabel, highLabel, value, step, max, min } = this.props; return (
onChange(event.target.value)} />
{lowLabel} {highLabel}
); } }