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 { ButtonBase, Typography, makeStyles, Divider } from '@material-ui/core';
import { IncreaseIndentArrowIcon } from '@fluentui/react-icons';
import PropTypes from 'prop-types';
const useStyles = makeStyles((theme) => ({
    wrapper: {
        display: 'flex',
        flexDirection: 'row',
        // height: theme.spacing(5),
        padding: theme.spacing(0.5),
        '&:hover': { color: theme.palette.secondary.main },
        width: '100%'
    },
    titleWrapper: {
        display: 'flex',
        width: '100%',
        textAlign: 'left'
    },
    labelWrapper: {
        marginTop: 4
    },
    label: {
        marginBottom: 4
    }
}), { name: 'FluentMenuListItem' });
export const FluentMenuListItem = (props) => {
    const classes = useStyles();
    const { label, value, arrow = true } = props, otherProps = __rest(props, ["label", "value", "arrow"]);
    return (React.createElement("div", null, React.createElement(ButtonBase, Object.assign({ classes: {
            root: classes.root
        }, className: classes.wrapper, disableRipple: true }, otherProps), React.createElement("div", { className: classes.titleWrapper }, React.createElement("div", { className: classes.labelWrapper }, React.createElement("div", { className: classes.label }, ' ', React.createElement(Typography, { variant: "caption" }, ' ', React.createElement("span", { style: { fontWeight: 700 } }, label), ' ')), React.createElement("div", null, React.createElement(Typography, { variant: "subtitle2" }, value))), arrow && React.createElement(IncreaseIndentArrowIcon, { style: { fontSize: 24 } }))), React.createElement(Divider, null)));
};
FluentMenuListItem.propTypes = {
    /**
     * Button label
     */
    label: PropTypes.string.isRequired
};
//# sourceMappingURL=FluentMenuListItem.js.map