import { Typography } from "../../../../UI/dataDisplay/typography/Typography.mjs";
import { StatusChip } from "../../../../UI/dataDisplay/status/StatusChip.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import "./EditTransaction.css";
//#region src/udp/pages/UdpTransactionsPage/sidesheets/EditTransactionHeaderItem.jsx
const EditTransactionHeaderItem = (props) => {
	const $ = c(8);
	const { label, value, statusChip } = props;
	let t0;
	if ($[0] !== label) {
		t0 = /* @__PURE__ */ React.createElement(Typography, { variant: "caption" }, label);
		$[0] = label;
		$[1] = t0;
	} else t0 = $[1];
	let t1;
	if ($[2] !== statusChip || $[3] !== value) {
		t1 = statusChip ? /* @__PURE__ */ React.createElement("div", { className: "transaction-sidesheet-header-item-status" }, /* @__PURE__ */ React.createElement(StatusChip, statusChip)) : /* @__PURE__ */ React.createElement(Typography, { variant: "body1" }, value);
		$[2] = statusChip;
		$[3] = value;
		$[4] = t1;
	} else t1 = $[4];
	let t2;
	if ($[5] !== t0 || $[6] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("div", { className: "transaction-sidesheet-header-item" }, t0, t1);
		$[5] = t0;
		$[6] = t1;
		$[7] = t2;
	} else t2 = $[7];
	return t2;
};
//#endregion
export { EditTransactionHeaderItem as default };

//# sourceMappingURL=EditTransactionHeaderItem.mjs.map