import { ToolBarButton } from "./ToolBarButton.mjs";
import { LayoutUnit } from "../../../layout/LayoutUnit.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { Divider, makeStyles } from "@material-ui/core";
//#region src/UI/inputs/buttons/AmbientPopoverMenuItem.jsx
const useStyles = makeStyles((theme) => ({ root: { paddingLeft: theme.spacing(1) } }));
const AmbientPopoverMenuItem = (t0) => {
	const $ = c(10);
	const { label, component, click } = t0;
	const classes = useStyles();
	let t1;
	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
		t1 = /* @__PURE__ */ React.createElement(LayoutUnit, { unit: "nudge" });
		$[0] = t1;
	} else t1 = $[0];
	let t2;
	if ($[1] !== click || $[2] !== component || $[3] !== label) {
		t2 = /* @__PURE__ */ React.createElement(ToolBarButton, {
			label,
			component,
			click,
			icon: false
		});
		$[1] = click;
		$[2] = component;
		$[3] = label;
		$[4] = t2;
	} else t2 = $[4];
	let t3;
	let t4;
	if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
		t3 = /* @__PURE__ */ React.createElement(LayoutUnit, { unit: "nudge" });
		t4 = /* @__PURE__ */ React.createElement(Divider, null);
		$[5] = t3;
		$[6] = t4;
	} else {
		t3 = $[5];
		t4 = $[6];
	}
	let t5;
	if ($[7] !== classes.root || $[8] !== t2) {
		t5 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t1, t2, t3, t4);
		$[7] = classes.root;
		$[8] = t2;
		$[9] = t5;
	} else t5 = $[9];
	return t5;
};
//#endregion
export { AmbientPopoverMenuItem };

//# sourceMappingURL=AmbientPopoverMenuItem.mjs.map