import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import React from "react";
import { Slider } from "antd";
//#region src/components/slider/index.tsx
const SliderOuter = (props) => {
	const { range } = props;
	let { defaultValue } = props;
	if (range) defaultValue = Array.isArray(defaultValue) ? defaultValue : [0, defaultValue];
	else defaultValue = Array.isArray(defaultValue) ? defaultValue[1] || defaultValue[0] : defaultValue;
	return /* @__PURE__ */ React.createElement(Slider, _objectSpread2(_objectSpread2({}, props), {}, { defaultValue }));
};
//#endregion
export { SliderOuter as default };
