import { c } from "react-compiler-runtime";
import React, { forwardRef } from "react";
import { makeStyles } from "@material-ui/core";
//#region src/utilities/form/FormButtons.tsx
const useStyles = makeStyles((theme) => ({ root: {
	display: "flex",
	flexDirection: "row",
	alignItems: "center",
	justifyContent: "flex-start",
	marginBottom: theme.spacing(2),
	marginTop: theme.spacing(1),
	"& > *": { margin: `0 ${theme.spacing(2)}px 0 0` }
} }));
/**
* A MUI Button varaint intended for use as the submit button for a form
*/
const FormButtonsCore = (props, ref) => {
	const $ = c(8);
	const classes = useStyles(props);
	let children;
	let otherProps;
	if ($[0] !== props) {
		({children, ...otherProps} = props);
		$[0] = props;
		$[1] = children;
		$[2] = otherProps;
	} else {
		children = $[1];
		otherProps = $[2];
	}
	const t0 = ref;
	let t1;
	if ($[3] !== children || $[4] !== classes.root || $[5] !== otherProps || $[6] !== t0) {
		t1 = /* @__PURE__ */ React.createElement("div", {
			...otherProps,
			ref: t0,
			className: classes.root
		}, children);
		$[3] = children;
		$[4] = classes.root;
		$[5] = otherProps;
		$[6] = t0;
		$[7] = t1;
	} else t1 = $[7];
	return t1;
};
const FormButtons = forwardRef(FormButtonsCore);
//#endregion
export { FormButtons };

//# sourceMappingURL=FormButtons.mjs.map