import { c } from "react-compiler-runtime";
import React from "react";
import { Paper, makeStyles } from "@material-ui/core";
import PropTypes from "prop-types";
//#region src/UI/templates/ui/GridSidebarContainer.jsx
const useStyles = makeStyles((theme) => ({
	root: {},
	groupWrapper: {
		padding: theme.spacing(2),
		height: (props) => props?.height ? `${props.height} !important` : "calc(100vh - 280px) !important",
		overflow: "auto"
	}
}));
const GridSidebarContainer = (props) => {
	const $ = c(11);
	const { children, color } = props;
	const classes = useStyles(props);
	let t0;
	if ($[0] !== color) {
		t0 = { background: color };
		$[0] = color;
		$[1] = t0;
	} else t0 = $[1];
	let t1;
	if ($[2] !== children || $[3] !== classes.groupWrapper) {
		t1 = /* @__PURE__ */ React.createElement("div", { className: classes.groupWrapper }, children);
		$[2] = children;
		$[3] = classes.groupWrapper;
		$[4] = t1;
	} else t1 = $[4];
	let t2;
	if ($[5] !== t0 || $[6] !== t1) {
		t2 = /* @__PURE__ */ React.createElement(Paper, {
			elevation: "0",
			square: true,
			style: t0
		}, t1);
		$[5] = t0;
		$[6] = t1;
		$[7] = t2;
	} else t2 = $[7];
	let t3;
	if ($[8] !== classes.root || $[9] !== t2) {
		t3 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t2);
		$[8] = classes.root;
		$[9] = t2;
		$[10] = t3;
	} else t3 = $[10];
	return t3;
};
GridSidebarContainer.propTypes = {
	children: PropTypes.node,
	color: PropTypes.string
};
//#endregion
export { GridSidebarContainer };

//# sourceMappingURL=GridSidebarContainer.mjs.map