import React from 'react' import { COLORS } from '../lib/constants' class Slider extends React.Component { static defaultProps = { onMouseDown: () => {}, onMouseUp: () => {} } handleChange = e => { this.props.onChange(`${e.target.value}${this.props.usePercentage ? '%' : 'px'}`) } render() { const minValue = this.props.minValue || 0 const maxValue = this.props.maxValue || 100 const step = 'step' in this.props ? this.props.step : 1 return (
{this.props.label}
) } } export default Slider