var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import { makeStyles } from '@material-ui/core';
import React, { forwardRef, } from 'react';
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 classes = useStyles(props);
    const { children } = props, otherProps = __rest(props, ["children"]);
    return (React.createElement("div", Object.assign({}, otherProps, { ref: ref, className: classes.root }), children));
};
export const FormButtons = forwardRef(FormButtonsCore);
//# sourceMappingURL=FormButtons.js.map