import { AppMenuItem } from "./AppMenuItem.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { List } from "@material-ui/core";
//#region src/UI/navigation/menus/AppMenu.jsx
const AppMenu = (t0) => {
	const $ = c(11);
	const { childrenIcons, menuItems, sidebarExpanded, user } = t0;
	let t1;
	if ($[0] !== childrenIcons || $[1] !== menuItems || $[2] !== sidebarExpanded || $[3] !== user) {
		let t2;
		if ($[5] !== childrenIcons || $[6] !== sidebarExpanded || $[7] !== user) {
			t2 = (item, index) => /* @__PURE__ */ React.createElement(AppMenuItem, {
				key: index,
				childrenIcons,
				sidebarExpanded,
				user,
				...item
			});
			$[5] = childrenIcons;
			$[6] = sidebarExpanded;
			$[7] = user;
			$[8] = t2;
		} else t2 = $[8];
		t1 = menuItems.map(t2);
		$[0] = childrenIcons;
		$[1] = menuItems;
		$[2] = sidebarExpanded;
		$[3] = user;
		$[4] = t1;
	} else t1 = $[4];
	let t2;
	if ($[9] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("nav", { "aria-label": "Site Navigation" }, /* @__PURE__ */ React.createElement(List, null, t1));
		$[9] = t1;
		$[10] = t2;
	} else t2 = $[10];
	return t2;
};
//#endregion
export { AppMenu };

//# sourceMappingURL=AppMenu.mjs.map