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

//# sourceMappingURL=index.js.map