import _Slider from "antd/es/slider";
import _extends from "@babel/runtime/helpers/extends";
import React from 'react';
var SliderOuter = function SliderOuter(props) {
  var range = props.range;
  var defaultValue = props.defaultValue;
  if (range) {
    defaultValue = Array.isArray(defaultValue) ? defaultValue : [0, defaultValue];
  } else {
    defaultValue = Array.isArray(defaultValue) ? defaultValue[1] || defaultValue[0] : defaultValue;
  }
  return /*#__PURE__*/React.createElement(_Slider, _extends({}, props, {
    defaultValue: defaultValue
  }));
};
export default SliderOuter;