import { c } from "react-compiler-runtime";
import React from "react";
import { Button, Typography, makeStyles } from "@material-ui/core";
//#region src/UI/inputs/buttons/FluentCompoundButton.jsx
const useStyles = makeStyles({
	root: {
		borderRadius: 2,
		minHeight: 72,
		padding: "0 16px",
		minWidth: 80,
		border: (props) => `1px solid ${props.color}`
	},
	label: {
		textTransform: "capitalize",
		fontSize: "0.875rem",
		fontWeight: 600,
		textAlign: "left"
	}
});
const FluentCompoundButton = (props) => {
	const $ = c(18);
	const classes = useStyles(props);
	let children;
	let otherProps;
	let textSecondary;
	if ($[0] !== props) {
		({children, textSecondary, ...otherProps} = props);
		$[0] = props;
		$[1] = children;
		$[2] = otherProps;
		$[3] = textSecondary;
	} else {
		children = $[1];
		otherProps = $[2];
		textSecondary = $[3];
	}
	let t0;
	if ($[4] !== classes.label || $[5] !== classes.root) {
		t0 = {
			root: classes.root,
			label: classes.label
		};
		$[4] = classes.label;
		$[5] = classes.root;
		$[6] = t0;
	} else t0 = $[6];
	let t1;
	if ($[7] !== children) {
		t1 = /* @__PURE__ */ React.createElement("div", null, children);
		$[7] = children;
		$[8] = t1;
	} else t1 = $[8];
	let t2;
	if ($[9] !== textSecondary) {
		t2 = /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Typography, { variant: "caption" }, textSecondary));
		$[9] = textSecondary;
		$[10] = t2;
	} else t2 = $[10];
	let t3;
	if ($[11] !== t1 || $[12] !== t2) {
		t3 = /* @__PURE__ */ React.createElement("div", null, t1, t2);
		$[11] = t1;
		$[12] = t2;
		$[13] = t3;
	} else t3 = $[13];
	let t4;
	if ($[14] !== otherProps || $[15] !== t0 || $[16] !== t3) {
		t4 = /* @__PURE__ */ React.createElement(Button, {
			...otherProps,
			disableElevation: true,
			classes: t0
		}, t3);
		$[14] = otherProps;
		$[15] = t0;
		$[16] = t3;
		$[17] = t4;
	} else t4 = $[17];
	return t4;
};
//#endregion
export { FluentCompoundButton };

//# sourceMappingURL=FluentCompoundButton.mjs.map