import { FluentIconButton } from "../UI/inputs/buttons/FluentIconButton.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { makeStyles } from "@material-ui/core";
import { ChevronLeftIcon, ChevronRightIcon } from "@fluentui/react-icons";
//#region src/inquiry/NodeColumnHeader.jsx
const useStyles = makeStyles((theme) => ({
	root: { position: "relative" },
	title: { margin: theme.spacing(2) },
	iconButton: {
		position: "absolute",
		right: 4,
		top: 4,
		zIndex: theme.zIndex.appBar
	}
}));
const NodeColumnHeader = (t0) => {
	const $ = c(12);
	const { children, toggleView, expanded } = t0;
	const classes = useStyles();
	let t1;
	if ($[0] !== children) {
		t1 = /* @__PURE__ */ React.createElement("div", null, children);
		$[0] = children;
		$[1] = t1;
	} else t1 = $[1];
	const t2 = expanded ? ChevronLeftIcon : ChevronRightIcon;
	let t3;
	if ($[2] !== t2 || $[3] !== toggleView) {
		t3 = /* @__PURE__ */ React.createElement(FluentIconButton, {
			icon: t2,
			onClick: toggleView
		});
		$[2] = t2;
		$[3] = toggleView;
		$[4] = t3;
	} else t3 = $[4];
	let t4;
	if ($[5] !== classes.iconButton || $[6] !== t3) {
		t4 = /* @__PURE__ */ React.createElement("div", { className: classes.iconButton }, t3);
		$[5] = classes.iconButton;
		$[6] = t3;
		$[7] = t4;
	} else t4 = $[7];
	let t5;
	if ($[8] !== classes.root || $[9] !== t1 || $[10] !== t4) {
		t5 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t1, t4);
		$[8] = classes.root;
		$[9] = t1;
		$[10] = t4;
		$[11] = t5;
	} else t5 = $[11];
	return t5;
};
//#endregion
export { NodeColumnHeader };

//# sourceMappingURL=NodeColumnHeader.mjs.map