import { c } from "react-compiler-runtime";
import React from "react";
import { Typography, makeStyles } from "@material-ui/core";
//#region src/UI/dataDisplay/CompactDataListItem.jsx
const useStyles = makeStyles((theme) => ({
	root: { display: "flex" },
	labelRoot: {
		color: "inherit",
		marginRight: theme.spacing(.5),
		opacity: .6
	},
	valueRoot: { color: "inherit" }
}));
const CompactDataListItem = (props) => {
	const $ = c(12);
	const { label, value, labelSeparator: t0, disableLabelSeparator: t1 } = props;
	const labelSeparator = t0 === void 0 ? ":" : t0;
	const disableLabelSeparator = t1 === void 0 ? false : t1;
	const classes = useStyles(props);
	let t2;
	if ($[0] !== classes.labelRoot || $[1] !== disableLabelSeparator || $[2] !== label || $[3] !== labelSeparator) {
		t2 = !!label && /* @__PURE__ */ React.createElement(Typography, {
			variant: "body1",
			className: classes.labelRoot
		}, label, !disableLabelSeparator && labelSeparator);
		$[0] = classes.labelRoot;
		$[1] = disableLabelSeparator;
		$[2] = label;
		$[3] = labelSeparator;
		$[4] = t2;
	} else t2 = $[4];
	let t3;
	if ($[5] !== classes.valueRoot || $[6] !== value) {
		t3 = !!value && /* @__PURE__ */ React.createElement(Typography, {
			variant: "body1",
			className: classes.valueRoot
		}, value);
		$[5] = classes.valueRoot;
		$[6] = value;
		$[7] = t3;
	} else t3 = $[7];
	let t4;
	if ($[8] !== classes.root || $[9] !== t2 || $[10] !== t3) {
		t4 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t2, t3);
		$[8] = classes.root;
		$[9] = t2;
		$[10] = t3;
		$[11] = t4;
	} else t4 = $[11];
	return t4;
};
//#endregion
export { CompactDataListItem };

//# sourceMappingURL=CompactDataListItem.mjs.map