import { c } from "react-compiler-runtime";
import React from "react";
import { makeStyles } from "@material-ui/core";
import PropTypes from "prop-types";
//#region src/UI/components/feedback/Adornment.jsx
const useStyles = makeStyles((theme) => ({ root: (props) => ({
	width: theme.spacing(.5),
	height: "100%",
	background: theme.palette[props.color].main
}) }));
const Adornment = (props) => {
	const $ = c(2);
	const classes = useStyles(props);
	let t0;
	if ($[0] !== classes.root) {
		t0 = /* @__PURE__ */ React.createElement("div", { className: classes.root });
		$[0] = classes.root;
		$[1] = t0;
	} else t0 = $[1];
	return t0;
};
Adornment.propTypes = { color: PropTypes.string };
//#endregion
export { Adornment };

//# sourceMappingURL=Adornment.mjs.map