import React from 'react'
import LdvSlider from 'components/ldvSlider'
import I18n from '../i18n/index'

const LdvSaturation = (props) => {
  const {value, onSlidingComplete, minSaturation} = props

  const renderBrightness = () => {
    return (
      <LdvSlider
        style={props.style}
        title={I18n.getLang('light_sources_tile_rgb_lighting_saturation')}
        value={value}
        max={100}
        min={minSaturation ? minSaturation : 0}
        onSlidingComplete={onSlidingComplete}
        onValueChange={props.onValueChange}/>
    )
  }
  return renderBrightness()
}

export default LdvSaturation