import { getFilterButtonList, getSortList } from "../config.js";
import React, { useMemo } from "react";
import { PisellDataSourceContainer, PisellFilter, PisellSort } from "@pisell/materials";
//#region src/plus/orderList/components/HandleActions.tsx
const { ColumnsSetting } = PisellDataSourceContainer;
const HandleActions = (props) => {
	const { locales, __id } = props;
	const filterButtonListValue = useMemo(() => {
		return { otherFilter: getFilterButtonList(locales) };
	}, [locales]);
	const sortList = useMemo(() => getSortList(locales), [locales]);
	return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ColumnsSetting, { __id }), /* @__PURE__ */ React.createElement(PisellSort, {
		hasForm: false,
		list: sortList
	}), /* @__PURE__ */ React.createElement(PisellFilter, {
		placement: "bottomLeft",
		hasForm: false,
		value: filterButtonListValue
	}));
};
//#endregion
export { HandleActions as default };
