import { Button as e } from "../ui/button.js";
import { jsx as t, jsxs as n } from "react/jsx-runtime";
//#region src/components/data-table/DataTableBatchAction.tsx
var r = ({ selectedCount: r, batchActions: i, onBatchAction: a }) => r === 0 ? null : /* @__PURE__ */ t("div", {
	className: "mr-4 flex items-center justify-between",
	children: /* @__PURE__ */ t("div", {
		className: "flex gap-2",
		children: i.map((t) => /* @__PURE__ */ n(e, {
			variant: t.variant || "outline",
			size: "sm",
			onClick: () => a(t),
			children: [
				t.icon,
				t.label,
				" (",
				r,
				")"
			]
		}, t.id))
	})
});
//#endregion
export { r as default };
