import { c } from "react-compiler-runtime";
import React from "react";
import { AppBar, makeStyles } from "@material-ui/core";
//#region src/page/PageHeader.jsx
const useStyles = makeStyles((theme) => ({ root: { color: theme.palette.appBar.contrastText } }), { name: "PageHeader" });
/**
* A page's header bar
*
* Includes the page title and optional confirmation UI.
*/
const PageHeader = (props) => {
	const $ = c(7);
	const classes = useStyles(props);
	let other;
	if ($[0] !== props) {
		const { title, className, children, ...t0 } = props;
		other = t0;
		$[0] = props;
		$[1] = other;
	} else other = $[1];
	let t0;
	if ($[2] !== classes.root) {
		t0 = { root: classes.root };
		$[2] = classes.root;
		$[3] = t0;
	} else t0 = $[3];
	let t1;
	if ($[4] !== other || $[5] !== t0) {
		t1 = /* @__PURE__ */ React.createElement(AppBar, {
			position: "static",
			color: "transparent",
			elevation: 0,
			...other,
			classes: t0
		});
		$[4] = other;
		$[5] = t0;
		$[6] = t1;
	} else t1 = $[6];
	return t1;
};
//#endregion
export { PageHeader };

//# sourceMappingURL=PageHeader.mjs.map