import { cx as e } from "../../../theme/tools.js";
import { BackofficePageHeader as t } from "../../../backoffice/molecules/backoffice_page_header/BackofficePageHeader.js";
import { actions as n, container as r, content as i } from "./pageContainer.css.js";
import { jsx as a, jsxs as o } from "react/jsx-runtime";
//#region src/atomic/templates/page-container/PageContainer.tsx
var s = ({ title: s, subtitle: c, primaryAction: l, secondaryActions: u, leftAction: d, children: f, className: p, contentClassName: m }) => {
	let h = u ?? [], g = l != null, _ = h.length > 0, v = null;
	return (g || _) && (v = /* @__PURE__ */ o("div", {
		className: n,
		children: [_ && /* @__PURE__ */ a("div", {
			className: "_1u2lre42 txvbqb9ip txvbqbcp txvbqbao7 txvbqbajy",
			children: h.map((e, t) => /* @__PURE__ */ a("div", {
				className: "_1u2lre43 txvbqb9ip txvbqbcp",
				children: e
			}, t))
		}), g && /* @__PURE__ */ a("div", {
			className: "_1u2lre44 txvbqb9ip txvbqbcp",
			children: l
		})]
	})), /* @__PURE__ */ o("div", {
		className: e(r, p),
		children: [/* @__PURE__ */ a(t, {
			title: s,
			subtitle: c,
			actions: v,
			leftActions: d
		}), /* @__PURE__ */ a("div", {
			className: e(i, m),
			children: f
		})]
	});
};
//#endregion
export { s as PageContainer, s as default };

//# sourceMappingURL=PageContainer.js.map