import { c } from "react-compiler-runtime";
import React from "react";
import { Typography, makeStyles } from "@material-ui/core";
import { ChevronDownIcon, ChevronUpIcon } from "@fluentui/react-icons";
//#region src/UI/navigation/menus/ExpanderItem.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		display: "flex",
		width: "100%"
	},
	title: {
		width: "100%",
		flex: 1
	}
}));
const ExpanderItem = (t0) => {
	const $ = c(14);
	const { label, expanded } = t0;
	const classes = useStyles();
	let t1;
	if ($[0] !== label) {
		t1 = /* @__PURE__ */ React.createElement(Typography, { variant: "subtitle2" }, label);
		$[0] = label;
		$[1] = t1;
	} else t1 = $[1];
	let t2;
	if ($[2] !== classes.title || $[3] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("div", { className: classes.title }, t1);
		$[2] = classes.title;
		$[3] = t1;
		$[4] = t2;
	} else t2 = $[4];
	let t3;
	if ($[5] !== expanded) {
		t3 = !expanded && /* @__PURE__ */ React.createElement(ChevronDownIcon, null);
		$[5] = expanded;
		$[6] = t3;
	} else t3 = $[6];
	let t4;
	if ($[7] !== expanded) {
		t4 = expanded && /* @__PURE__ */ React.createElement(ChevronUpIcon, null);
		$[7] = expanded;
		$[8] = t4;
	} else t4 = $[8];
	let t5;
	if ($[9] !== classes.root || $[10] !== t2 || $[11] !== t3 || $[12] !== t4) {
		t5 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t2, t3, t4);
		$[9] = classes.root;
		$[10] = t2;
		$[11] = t3;
		$[12] = t4;
		$[13] = t5;
	} else t5 = $[13];
	return t5;
};
//#endregion
export { ExpanderItem };

//# sourceMappingURL=ExpanderItem.mjs.map