import { c } from "react-compiler-runtime";
import React from "react";
import { Button, makeStyles } from "@material-ui/core";
import { ArrowUpRightIcon, DeleteIcon, EditIcon } from "@fluentui/react-icons";
import PropTypes from "prop-types";
//#region src/UI/inputs/buttons/AmbientCardButton.jsx
const useStyles = makeStyles((theme) => ({ root: {
	borderRadius: 0,
	padding: 8
} }));
const AmbientCardButton = (props) => {
	const $ = c(21);
	const classes = useStyles(props);
	let children;
	let deleteOption;
	let editOption;
	let launchOption;
	let otherProps;
	if ($[0] !== props) {
		({editOption, launchOption, deleteOption, children, ...otherProps} = props);
		$[0] = props;
		$[1] = children;
		$[2] = deleteOption;
		$[3] = editOption;
		$[4] = launchOption;
		$[5] = otherProps;
	} else {
		children = $[1];
		deleteOption = $[2];
		editOption = $[3];
		launchOption = $[4];
		otherProps = $[5];
	}
	let t0;
	if ($[6] !== classes.root) {
		t0 = { root: classes.root };
		$[6] = classes.root;
		$[7] = t0;
	} else t0 = $[7];
	let t1;
	if ($[8] !== editOption) {
		t1 = editOption && /* @__PURE__ */ React.createElement(EditIcon, null);
		$[8] = editOption;
		$[9] = t1;
	} else t1 = $[9];
	let t2;
	if ($[10] !== launchOption) {
		t2 = launchOption && /* @__PURE__ */ React.createElement(ArrowUpRightIcon, null);
		$[10] = launchOption;
		$[11] = t2;
	} else t2 = $[11];
	let t3;
	if ($[12] !== deleteOption) {
		t3 = deleteOption && /* @__PURE__ */ React.createElement(DeleteIcon, null);
		$[12] = deleteOption;
		$[13] = t3;
	} else t3 = $[13];
	let t4;
	if ($[14] !== children || $[15] !== otherProps || $[16] !== t0 || $[17] !== t1 || $[18] !== t2 || $[19] !== t3) {
		t4 = /* @__PURE__ */ React.createElement(Button, {
			classes: t0,
			variant: "outlined",
			disableElevation: true,
			color: "primary",
			...otherProps
		}, t1, t2, t3, children);
		$[14] = children;
		$[15] = otherProps;
		$[16] = t0;
		$[17] = t1;
		$[18] = t2;
		$[19] = t3;
		$[20] = t4;
	} else t4 = $[20];
	return t4;
};
AmbientCardButton.propTypes = {
	editOption: PropTypes.bool,
	launchOption: PropTypes.bool,
	deleteOption: PropTypes.bool,
	children: PropTypes.string
};
//#endregion
export { AmbientCardButton };

//# sourceMappingURL=AmbientCardButton.mjs.map