import { c } from "react-compiler-runtime";
import React from "react";
import { Typography, makeStyles } from "@material-ui/core";
import PropTypes from "prop-types";
//#region src/UI/dataDisplay/ticketCard/NotificationElement.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		width: 0,
		height: 0,
		borderTop: "0px solid transparent",
		borderRight: `45px solid ${theme?.palette?.error?.main}`,
		borderBottom: "45px solid transparent"
	},
	number: {
		marginLeft: theme.spacing(3.5),
		paddingTop: theme.spacing(.5),
		color: theme?.palette?.common?.white
	}
}));
const NotificationElement = (t0) => {
	const $ = c(8);
	const { alertNumber } = t0;
	const classes = useStyles();
	let t1;
	if ($[0] !== alertNumber) {
		t1 = /* @__PURE__ */ React.createElement(Typography, null, " ", alertNumber, " ");
		$[0] = alertNumber;
		$[1] = t1;
	} else t1 = $[1];
	let t2;
	if ($[2] !== classes.number || $[3] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("div", { className: classes.number }, t1);
		$[2] = classes.number;
		$[3] = t1;
		$[4] = t2;
	} else t2 = $[4];
	let t3;
	if ($[5] !== classes.root || $[6] !== t2) {
		t3 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t2);
		$[5] = classes.root;
		$[6] = t2;
		$[7] = t3;
	} else t3 = $[7];
	return t3;
};
NotificationElement.propTypes = { alertNumber: PropTypes.number.isRequired };
//#endregion
export { NotificationElement };

//# sourceMappingURL=NotificationElement.mjs.map