import { c } from "react-compiler-runtime";
import React from "react";
import { TableHead, TableRow, makeStyles } from "@material-ui/core";
//#region src/UI/dataDisplay/FluentDataTable/FluentHead/index.tsx
const useStyles = makeStyles((theme) => ({
	root: (props) => ({ maxHeight: props?.containerMaxHeight }),
	row: (props) => ({
		backgroundColor: props?.background || theme.palette.secondary.light,
		"& .MuiTableCell-stickyHeader": { backgroundColor: props?.background || theme.palette.secondary.light }
	})
}));
const FluentHead = (props) => {
	const $ = c(8);
	const classes = useStyles(props);
	const t0 = props?.style;
	let t1;
	if ($[0] !== t0) {
		t1 = { ...t0 };
		$[0] = t0;
		$[1] = t1;
	} else t1 = $[1];
	const t2 = props?.children;
	let t3;
	if ($[2] !== classes.row || $[3] !== t2) {
		t3 = /* @__PURE__ */ React.createElement(TableRow, { className: classes.row }, t2);
		$[2] = classes.row;
		$[3] = t2;
		$[4] = t3;
	} else t3 = $[4];
	let t4;
	if ($[5] !== t1 || $[6] !== t3) {
		t4 = /* @__PURE__ */ React.createElement(TableHead, { style: t1 }, t3);
		$[5] = t1;
		$[6] = t3;
		$[7] = t4;
	} else t4 = $[7];
	return t4;
};
//#endregion
export { FluentHead as default };

//# sourceMappingURL=index.mjs.map