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 React from 'react';
import { makeStyles, Typography } from '@material-ui/core';
import { Button } from '@material-ui/core';
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'
    }
});
export const FluentCompoundButton = (props) => {
    const classes = useStyles(props);
    const { children, textSecondary } = props, otherProps = __rest(props, ["children", "textSecondary"]);
    return (React.createElement(Button, Object.assign({}, otherProps, { disableElevation: true, classes: {
            root: classes.root,
            label: classes.label
        } }), React.createElement("div", null, React.createElement("div", null, children), React.createElement("div", null, React.createElement(Typography, { variant: "caption" }, textSecondary)))));
};
//# sourceMappingURL=FluentCompoundButton.js.map