import { c } from "react-compiler-runtime";
import React, { forwardRef } from "react";
import { Typography, makeStyles } from "@material-ui/core";
import clsx from "clsx";
//#region src/UI/surfaces/cards/fluentCards/FUICardHeader.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		minHeight: 40,
		paddingLeft: theme.spacing(2),
		display: "flex",
		flexDirection: "row",
		alignItems: "center",
		borderBottom: `1px solid ${theme.palette.divider}`
	},
	title: { flexGrow: 1 }
}));
const FUICardHeader = (props, ref) => {
	const $ = c(19);
	const classes = useStyles(props);
	let children;
	let className;
	let headerActions;
	let other;
	let titleId;
	if ($[0] !== props) {
		({className, children, headerActions, titleId, ...other} = props);
		$[0] = props;
		$[1] = children;
		$[2] = className;
		$[3] = headerActions;
		$[4] = other;
		$[5] = titleId;
	} else {
		children = $[1];
		className = $[2];
		headerActions = $[3];
		other = $[4];
		titleId = $[5];
	}
	let t0;
	if ($[6] !== className || $[7] !== classes.root) {
		t0 = clsx(className, classes.root);
		$[6] = className;
		$[7] = classes.root;
		$[8] = t0;
	} else t0 = $[8];
	let t1;
	if ($[9] !== children || $[10] !== classes.title || $[11] !== titleId) {
		t1 = /* @__PURE__ */ React.createElement(Typography, {
			id: titleId,
			className: classes.title
		}, children);
		$[9] = children;
		$[10] = classes.title;
		$[11] = titleId;
		$[12] = t1;
	} else t1 = $[12];
	let t2;
	if ($[13] !== headerActions || $[14] !== other || $[15] !== ref || $[16] !== t0 || $[17] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("div", {
			ref,
			...other,
			className: t0
		}, t1, headerActions);
		$[13] = headerActions;
		$[14] = other;
		$[15] = ref;
		$[16] = t0;
		$[17] = t1;
		$[18] = t2;
	} else t2 = $[18];
	return t2;
};
var FUICardHeader_default = forwardRef(FUICardHeader);
//#endregion
export { FUICardHeader_default as default };

//# sourceMappingURL=FUICardHeader.mjs.map