import { Button } from "../ui/button.js";
import { c } from "react/compiler-runtime";
import { jsx, jsxs } from "react/jsx-runtime";
var DataTableBatchAction_default = (i) => {
	let a = c(9), { selectedCount: o, batchActions: s, onBatchAction: l } = i;
	if (o === 0) return null;
	let u;
	if (a[0] !== s || a[1] !== l || a[2] !== o) {
		let r;
		a[4] !== l || a[5] !== o ? (r = (r) => /* @__PURE__ */ jsxs(Button, {
			variant: r.variant || "outline",
			size: "sm",
			onClick: () => l(r),
			children: [
				r.icon,
				r.label,
				" (",
				o,
				")"
			]
		}, r.id), a[4] = l, a[5] = o, a[6] = r) : r = a[6], u = s.map(r), a[0] = s, a[1] = l, a[2] = o, a[3] = u;
	} else u = a[3];
	let d;
	return a[7] === u ? d = a[8] : (d = /* @__PURE__ */ jsx("div", {
		className: "mr-4 flex items-center justify-between",
		children: /* @__PURE__ */ jsx("div", {
			className: "flex gap-2",
			children: u
		})
	}), a[7] = u, a[8] = d), d;
};
export { DataTableBatchAction_default as default };
