import { PrimaryActionHeader } from "../../../UI/utilityDisplay/utilityHeader/PrimaryActionHeader.mjs";
import { useReadMetaData } from "../hooks/useReadMetaData.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
//#region src/componentSystems/pageRenderer/wrappers/PrimaryActionHeaderWrapper.jsx
const PrimaryActionHeaderWrapper = (props) => {
	const $ = c(3);
	const { propsComponent } = props;
	const { title, subheader } = useReadMetaData(propsComponent);
	const t0 = title?.label || "";
	const t1 = subheader?.label || "";
	let t2;
	if ($[0] !== t0 || $[1] !== t1) {
		t2 = /* @__PURE__ */ React.createElement(PrimaryActionHeader, {
			title: t0,
			buttonLabel: t1,
			single: true,
			grid: false
		});
		$[0] = t0;
		$[1] = t1;
		$[2] = t2;
	} else t2 = $[2];
	return t2;
};
//#endregion
export { PrimaryActionHeaderWrapper };

//# sourceMappingURL=PrimaryActionHeaderWrapper.mjs.map