define(["require", "exports", "react", "@fluentui/react", "@fluentui/react/lib/Button"], function (require, exports, React, react_1, Button_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.ButtonCommandBarExample = void 0;
    var menuProps = {
        items: [
            {
                key: 'emailMessage',
                text: 'Email message',
                iconProps: { iconName: 'Mail' },
            },
            {
                key: 'calendarEvent',
                text: 'Calendar event',
                iconProps: { iconName: 'Calendar' },
            },
        ],
    };
    var addIcon = { iconName: 'Add' };
    var mailIcon = { iconName: 'Mail' };
    var stackStyles = { root: { height: 44 } };
    var ButtonCommandBarExample = function (props) {
        var disabled = props.disabled, checked = props.checked;
        // Here we use a Stack to simulate a command bar.
        // The real CommandBar control also uses CommandBarButtons internally.
        return (React.createElement(react_1.Stack, { horizontal: true, styles: stackStyles },
            React.createElement(Button_1.CommandBarButton, { iconProps: addIcon, text: "New item", 
                // Set split=true to render a SplitButton instead of a regular button with a menu
                split: true, menuProps: menuProps, disabled: disabled, checked: checked }),
            React.createElement(Button_1.CommandBarButton, { iconProps: mailIcon, text: "Send mail", disabled: disabled, checked: checked })));
    };
    exports.ButtonCommandBarExample = ButtonCommandBarExample;
});
//# sourceMappingURL=commandBarButton.stories.js.map