import { cx as e } from "../../../theme/tools.js";
import { bottomRow as t, container as n, left as r, right as i, topRow as a } from "./tableToolbar.css.js";
import { jsx as o, jsxs as s } from "react/jsx-runtime";
//#region src/backoffice/molecules/table_toolbar/TableToolbar.tsx
var c = ({ search: c, filters: l, leftActions: u, rightActions: d, bottomLeft: f, bottomRight: p, className: m }) => {
	let h = c != null || l != null || u != null || d != null, g = f != null || p != null;
	if (!h && !g) return null;
	let _ = null;
	h && (_ = /* @__PURE__ */ s("div", {
		className: a,
		children: [/* @__PURE__ */ s("div", {
			className: r,
			children: [
				c,
				l,
				u
			]
		}), /* @__PURE__ */ o("div", {
			className: i,
			children: d
		})]
	}));
	let v = null;
	return g && (v = /* @__PURE__ */ s("div", {
		className: t,
		children: [/* @__PURE__ */ o("div", {
			className: r,
			children: f
		}), /* @__PURE__ */ o("div", {
			className: i,
			children: p
		})]
	})), /* @__PURE__ */ s("div", {
		className: e(n, m),
		children: [_, v]
	});
};
//#endregion
export { c as TableToolbar, c as default };

//# sourceMappingURL=TableToolbar.js.map