import * as tslib_1 from "tslib";
import * as React from 'react';
import { DefaultButton } from 'office-ui-fabric-react/lib/Button';
var ButtonContextualMenuExample = /** @class */ (function (_super) {
    tslib_1.__extends(ButtonContextualMenuExample, _super);
    function ButtonContextualMenuExample() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ButtonContextualMenuExample.prototype.render = function () {
        var _a = this.props, disabled = _a.disabled, checked = _a.checked;
        return (React.createElement("div", { className: "ms-ContextualMenuButtonsExample" },
            React.createElement("div", null,
                React.createElement(DefaultButton, { "data-automation-id": "test", disabled: disabled, checked: checked, iconProps: { iconName: 'Add' }, text: "New", 
                    // tslint:disable-next-line:jsx-no-lambda
                    onMenuClick: function (ev) {
                        console.log(ev);
                    }, menuProps: {
                        items: [
                            {
                                key: 'emailMessage',
                                text: 'Email message',
                                iconProps: { iconName: 'Mail' }
                            },
                            {
                                key: 'calendarEvent',
                                text: 'Calendar event',
                                iconProps: { iconName: 'Calendar' }
                            }
                        ],
                        directionalHintFixed: true
                    } }))));
    };
    return ButtonContextualMenuExample;
}(React.Component));
export { ButtonContextualMenuExample };
//# sourceMappingURL=Button.ContextualMenu.Example.js.map