import { FluentIcon } from "../utilities/iconLibrary/FluentIcon.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { Avatar, IconButton, Typography, makeStyles } from "@material-ui/core";
import { RefreshIcon } from "@fluentui/react-icons";
//#region src/page/PageSectionHeader.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		display: "flex",
		flexDirection: "row"
	},
	title: { flex: 1 },
	icon: { marginTop: theme.spacing(-2.5) }
}));
const PageSectionHeader = (props) => {
	const $ = c(11);
	const classes = useStyles();
	const { action, title } = props;
	let t0;
	if ($[0] !== classes.title || $[1] !== title) {
		t0 = /* @__PURE__ */ React.createElement(Typography, {
			variant: "h6",
			className: classes.title
		}, " ", title, " ");
		$[0] = classes.title;
		$[1] = title;
		$[2] = t0;
	} else t0 = $[2];
	let t1;
	if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
		t1 = /* @__PURE__ */ React.createElement(Avatar, null, /* @__PURE__ */ React.createElement(FluentIcon, {
			size: "small",
			component: RefreshIcon
		}));
		$[3] = t1;
	} else t1 = $[3];
	let t2;
	if ($[4] !== action || $[5] !== classes.icon) {
		t2 = /* @__PURE__ */ React.createElement(IconButton, {
			onClick: action,
			className: classes.icon
		}, t1);
		$[4] = action;
		$[5] = classes.icon;
		$[6] = t2;
	} else t2 = $[6];
	let t3;
	if ($[7] !== classes.root || $[8] !== t0 || $[9] !== t2) {
		t3 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t0, t2);
		$[7] = classes.root;
		$[8] = t0;
		$[9] = t2;
		$[10] = t3;
	} else t3 = $[10];
	return t3;
};
//#endregion
export { PageSectionHeader };

//# sourceMappingURL=PageSectionHeader.mjs.map