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

//# sourceMappingURL=CompactDataList.mjs.map