Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onChange,
style,
value,
} = props;
const adjustedValue = Math.floor(clamp(value, min, max));
const decreaseDisabled = adjustedValue <= min;
const increaseDisabled = adjustedValue >= max;
return (