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