import { getEllipseColor } from "../../../utilities/style/colorConverter.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { Typography, makeStyles } from "@material-ui/core";
import clsx from "clsx";
//#region src/UI/dataDisplay/typography/Typography.jsx
const useStyles = makeStyles((theme) => ({ typography: { color: (props) => props?.color && getEllipseColor(theme, props?.color) } }));
const Typography$1 = (props) => {
	const $ = c(11);
	const { variant, align, children, className, noWrap: t0, paragraph: t1, color } = props;
	const noWrap = t0 === void 0 ? false : t0;
	const paragraph = t1 === void 0 ? false : t1;
	const classes = useStyles(props);
	let t2;
	if ($[0] !== className || $[1] !== classes.typography || $[2] !== color) {
		t2 = clsx({ [classes.typography]: color }, className);
		$[0] = className;
		$[1] = classes.typography;
		$[2] = color;
		$[3] = t2;
	} else t2 = $[3];
	let t3;
	if ($[4] !== align || $[5] !== children || $[6] !== noWrap || $[7] !== paragraph || $[8] !== t2 || $[9] !== variant) {
		t3 = /* @__PURE__ */ React.createElement(Typography, {
			variant,
			align,
			className: t2,
			noWrap,
			paragraph
		}, children);
		$[4] = align;
		$[5] = children;
		$[6] = noWrap;
		$[7] = paragraph;
		$[8] = t2;
		$[9] = variant;
		$[10] = t3;
	} else t3 = $[10];
	return t3;
};
//#endregion
export { Typography$1 as Typography };

//# sourceMappingURL=Typography.mjs.map