import * as tslib_1 from "tslib";
import * as React from 'react';
import { CommandBar } from 'office-ui-fabric-react/lib/CommandBar';
import { CommandBarButton } from 'office-ui-fabric-react/lib/Button';
var CommandBarButtonAsExample = /** @class */ (function (_super) {
    tslib_1.__extends(CommandBarButtonAsExample, _super);
    function CommandBarButtonAsExample(props) {
        return _super.call(this, props) || this;
    }
    CommandBarButtonAsExample.prototype.render = function () {
        var customButton = function (props) {
            var buttonOnMouseEnter = function () { return console.log(props.text + " hovered"); };
            return (React.createElement(CommandBarButton, tslib_1.__assign({ onMouseEnter: buttonOnMouseEnter }, props, { styles: tslib_1.__assign({}, props.styles, { icon: { color: 'red' } }) })));
        };
        var _a = this.props, items = _a.items, overflowItems = _a.overflowItems, farItems = _a.farItems;
        return (React.createElement("div", null,
            React.createElement(CommandBar, { buttonAs: customButton, items: items, overflowItems: overflowItems, farItems: farItems, ariaLabel: 'Use left and right arrow keys to navigate between commands' })));
    };
    return CommandBarButtonAsExample;
}(React.Component));
export { CommandBarButtonAsExample };
//# sourceMappingURL=CommandBar.ButtonAs.Example.js.map