import { c } from "react-compiler-runtime";
import React from "react";
import { Typography, makeStyles } from "@material-ui/core";
//#region src/UI/dataDisplay/typography/StandardTitle.jsx
const useStyles = makeStyles((theme) => ({ root: {
	marginTop: (props) => props?.removeMarginTop ? 0 : theme.spacing(1),
	whiteSpace: "nowrap",
	textOverflow: "ellipsis"
} }));
const StandardTitle = (props) => {
	const $ = c(7);
	const classes = useStyles(props);
	let children;
	let other;
	if ($[0] !== props) {
		({children, ...other} = props);
		$[0] = props;
		$[1] = children;
		$[2] = other;
	} else {
		children = $[1];
		other = $[2];
	}
	let t0;
	if ($[3] !== children || $[4] !== classes.root || $[5] !== other) {
		t0 = /* @__PURE__ */ React.createElement(Typography, {
			component: "h2",
			variant: "h6",
			className: classes.root,
			...other
		}, children);
		$[3] = children;
		$[4] = classes.root;
		$[5] = other;
		$[6] = t0;
	} else t0 = $[6];
	return t0;
};
//#endregion
export { StandardTitle };

//# sourceMappingURL=StandardTitle.mjs.map