import { n as e } from "../chunks/context-menu-6nJkPmKV.js";
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
import { BrushCleaningIcon as i, SortAscIcon as a, SortDescIcon as o } from "lucide-react";
//#region src/table-sorting/TableSortingControls.tsx
var s = {
	asc: "По возрастанию",
	desc: "По убыванию",
	clear: "Сбросить"
};
function c({ direction: e, order: t, className: i }) {
	return e ? /* @__PURE__ */ r("span", {
		className: i,
		"aria-hidden": !0,
		children: [n(e === "desc" ? o : a, {}), typeof t == "number" ? /* @__PURE__ */ n("span", {
			className: "fontSizeXs",
			children: t
		}) : null]
	}) : null;
}
function l({ onSelect: c, labels: l }) {
	let u = {
		...s,
		...l
	};
	return /* @__PURE__ */ r(t, { children: [
		/* @__PURE__ */ n(e.GroupLabel, { children: "Сортировка" }),
		/* @__PURE__ */ n(e.Item, {
			icon: /* @__PURE__ */ n(a, {}),
			onSelect: () => c("asc"),
			children: u.asc
		}),
		/* @__PURE__ */ n(e.Item, {
			icon: /* @__PURE__ */ n(o, {}),
			onSelect: () => c("desc"),
			children: u.desc
		}),
		/* @__PURE__ */ n(e.Item, {
			icon: /* @__PURE__ */ n(i, {}),
			onSelect: () => c("clear"),
			children: u.clear
		})
	] });
}
//#endregion
export { c as TableSortIndicator, l as TableSortingMenuItems };

//# sourceMappingURL=index.js.map