const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _pisell_materials = require("@pisell/materials");
let _ant_design_icons = require("@ant-design/icons");
//#region src/plus/orderList/components/Reset.tsx
const { useContainerContext } = _pisell_materials.PisellDataSourceContainer;
const Reset = (props) => {
	const { locales, setValueType, clearSelectedData } = props;
	const { serverActions: { list } } = useContainerContext();
	const form = antd.Form.useFormInstance();
	return /* @__PURE__ */ react.default.createElement(antd.Button, {
		icon: /* @__PURE__ */ react.default.createElement(_ant_design_icons.ReloadOutlined, null),
		onClick: () => {
			form.resetFields();
			list.onReset();
			setValueType(void 0);
			clearSelectedData();
		}
	}, locales.getText("pisell2.orderList.common.reset"));
};
//#endregion
exports.default = Reset;
