import { c } from "react-compiler-runtime";
import React, { Children, cloneElement } from "react";
import { Divider, makeStyles } from "@material-ui/core";
import clsx from "clsx";
//#region src/UI/dataDisplay/entityHeader/ui/EntityHeaderList.jsx
const useStyles = makeStyles((theme) => ({ root: {} }));
const EntityHeaderList = (props) => {
	const $ = c(5);
	const { children, showSeperator: t0 } = props;
	const showSeperator = t0 === void 0 ? false : t0;
	const arrayChildren = Children.toArray(children);
	const classes = useStyles(props);
	let t1;
	if ($[0] !== classes.root) {
		t1 = clsx({ [classes.root]: true });
		$[0] = classes.root;
		$[1] = t1;
	} else t1 = $[1];
	const t2 = Children.map(arrayChildren, (child, index) => {
		const isLast = index === arrayChildren.length - 1;
		return /* @__PURE__ */ React.createElement(React.Fragment, null, cloneElement(child, { isLast }), !isLast && showSeperator && /* @__PURE__ */ React.createElement(Divider, null));
	});
	let t3;
	if ($[2] !== t1 || $[3] !== t2) {
		t3 = /* @__PURE__ */ React.createElement("div", { className: t1 }, t2);
		$[2] = t1;
		$[3] = t2;
		$[4] = t3;
	} else t3 = $[4];
	return t3;
};
//#endregion
export { EntityHeaderList };

//# sourceMappingURL=EntityHeaderList.mjs.map