import { FluentIcon } from "../../../utilities/iconLibrary/FluentIcon.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { IconButton, makeStyles } from "@material-ui/core";
//#region src/UI/inputs/buttons/FluentIconButton.jsx
const useStyles = makeStyles((theme) => ({ root: {
	borderRadius: (props) => props.rounded ? 50 : 2,
	width: (props) => props.rounded ? theme.spacing(4) : theme.spacing(1),
	height: (props) => props.rounded ? theme.spacing(4) : theme.spacing(1),
	border: (props) => props.rounded && `1px solid ${theme.palette.divider}`,
	background: (props) => props.rounded && theme.palette.common.white
} }));
const FluentIconButton = (props) => {
	const $ = c(17);
	const classes = useStyles(props);
	let icon;
	let id;
	let otherProps;
	let t0;
	let udprecordid;
	if ($[0] !== props) {
		({icon, size: t0, id, udprecordid, ...otherProps} = props);
		$[0] = props;
		$[1] = icon;
		$[2] = id;
		$[3] = otherProps;
		$[4] = t0;
		$[5] = udprecordid;
	} else {
		icon = $[1];
		id = $[2];
		otherProps = $[3];
		t0 = $[4];
		udprecordid = $[5];
	}
	const size = t0 === void 0 ? "medium" : t0;
	let t1;
	if ($[6] !== classes.root) {
		t1 = { root: classes.root };
		$[6] = classes.root;
		$[7] = t1;
	} else t1 = $[7];
	let t2;
	if ($[8] !== icon || $[9] !== id || $[10] !== size) {
		t2 = /* @__PURE__ */ React.createElement(FluentIcon, {
			component: icon,
			size,
			id
		});
		$[8] = icon;
		$[9] = id;
		$[10] = size;
		$[11] = t2;
	} else t2 = $[11];
	let t3;
	if ($[12] !== otherProps || $[13] !== t1 || $[14] !== t2 || $[15] !== udprecordid) {
		t3 = /* @__PURE__ */ React.createElement(IconButton, {
			...otherProps,
			classes: t1,
			udprecordid
		}, t2);
		$[12] = otherProps;
		$[13] = t1;
		$[14] = t2;
		$[15] = udprecordid;
		$[16] = t3;
	} else t3 = $[16];
	return t3;
};
//#endregion
export { FluentIconButton };

//# sourceMappingURL=FluentIconButton.mjs.map