import { c } from "react-compiler-runtime";
import React from "react";
import { Divider, Typography, makeStyles } from "@material-ui/core";
//#region src/UI/surfaces/cards/workOrderCard/WorkOrderHeader.jsx
const useStyles = makeStyles((theme) => ({
	root: {},
	wrapper: {
		display: "flex",
		justifyContent: "space-between",
		width: "75%"
	}
}));
const WorkOrderHeader = (t0) => {
	const $ = c(18);
	const { cost, hours } = t0;
	const classes = useStyles();
	let t1;
	if ($[0] !== cost) {
		t1 = /* @__PURE__ */ React.createElement(Typography, { variant: "h3" }, " $", cost, " ");
		$[0] = cost;
		$[1] = t1;
	} else t1 = $[1];
	let t2;
	if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
		t2 = /* @__PURE__ */ React.createElement(Typography, { variant: "caption" }, " Total Cost ");
		$[2] = t2;
	} else t2 = $[2];
	let t3;
	if ($[3] !== t1) {
		t3 = /* @__PURE__ */ React.createElement("div", null, t1, t2);
		$[3] = t1;
		$[4] = t3;
	} else t3 = $[4];
	let t4;
	if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
		t4 = /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Divider, { variant: "vertical" }));
		$[5] = t4;
	} else t4 = $[5];
	let t5;
	if ($[6] !== hours) {
		t5 = /* @__PURE__ */ React.createElement(Typography, { variant: "h3" }, " ", hours, " ");
		$[6] = hours;
		$[7] = t5;
	} else t5 = $[7];
	let t6;
	if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
		t6 = /* @__PURE__ */ React.createElement(Typography, { variant: "caption" }, " Total Hours ");
		$[8] = t6;
	} else t6 = $[8];
	let t7;
	if ($[9] !== t5) {
		t7 = /* @__PURE__ */ React.createElement("div", null, t5, t6);
		$[9] = t5;
		$[10] = t7;
	} else t7 = $[10];
	let t8;
	if ($[11] !== classes.wrapper || $[12] !== t3 || $[13] !== t7) {
		t8 = /* @__PURE__ */ React.createElement("div", { className: classes.wrapper }, t3, t4, t7);
		$[11] = classes.wrapper;
		$[12] = t3;
		$[13] = t7;
		$[14] = t8;
	} else t8 = $[14];
	let t9;
	if ($[15] !== classes.root || $[16] !== t8) {
		t9 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t8);
		$[15] = classes.root;
		$[16] = t8;
		$[17] = t9;
	} else t9 = $[17];
	return t9;
};
//#endregion
export { WorkOrderHeader };

//# sourceMappingURL=WorkOrderHeader.mjs.map