import { c } from "react-compiler-runtime";
import React from "react";
import { Button, Divider, makeStyles } from "@material-ui/core";
//#region src/UI/navigation/menus/FluentMenuListItem.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		padding: 0,
		justifyContent: "left"
	},
	wrapper: {
		minWidth: 200,
		width: "100%"
	},
	item: { height: theme.spacing(1) },
	label: { textTransform: "none" }
}));
const FluentMenuListItem = (t0) => {
	const $ = c(22);
	let label;
	let onClick;
	let props;
	if ($[0] !== t0) {
		({label, onClick, ...props} = t0);
		$[0] = t0;
		$[1] = label;
		$[2] = onClick;
		$[3] = props;
	} else {
		label = $[1];
		onClick = $[2];
		props = $[3];
	}
	const classes = useStyles();
	let t1;
	if ($[4] !== classes.item) {
		t1 = /* @__PURE__ */ React.createElement("div", { className: classes.item });
		$[4] = classes.item;
		$[5] = t1;
	} else t1 = $[5];
	let t2;
	if ($[6] !== classes.label || $[7] !== classes.root) {
		t2 = {
			root: classes.root,
			label: classes.label
		};
		$[6] = classes.label;
		$[7] = classes.root;
		$[8] = t2;
	} else t2 = $[8];
	let t3;
	if ($[9] !== label || $[10] !== onClick || $[11] !== props || $[12] !== t2) {
		t3 = /* @__PURE__ */ React.createElement(Button, {
			...props,
			fullWidth: true,
			classes: t2,
			onClick
		}, label);
		$[9] = label;
		$[10] = onClick;
		$[11] = props;
		$[12] = t2;
		$[13] = t3;
	} else t3 = $[13];
	let t4;
	if ($[14] !== classes.item) {
		t4 = /* @__PURE__ */ React.createElement("div", { className: classes.item });
		$[14] = classes.item;
		$[15] = t4;
	} else t4 = $[15];
	let t5;
	if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
		t5 = /* @__PURE__ */ React.createElement(Divider, null);
		$[16] = t5;
	} else t5 = $[16];
	let t6;
	if ($[17] !== classes.wrapper || $[18] !== t1 || $[19] !== t3 || $[20] !== t4) {
		t6 = /* @__PURE__ */ React.createElement("div", { className: classes.wrapper }, t1, t3, t4, t5);
		$[17] = classes.wrapper;
		$[18] = t1;
		$[19] = t3;
		$[20] = t4;
		$[21] = t6;
	} else t6 = $[21];
	return t6;
};
//#endregion
export { FluentMenuListItem };

//# sourceMappingURL=FluentMenuListItem.mjs.map