UNPKG

@fluentui/react

Version:

Reusable React components for building web experiences.

24 lines 1.35 kB
define(["require", "exports", "tslib", "react", "../BaseButton", "../../../Utilities", "./CommandBarButton.styles"], function (require, exports, tslib_1, React, BaseButton_1, Utilities_1, CommandBarButton_styles_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommandBarButton = void 0; /** * {@docCategory Button} */ var CommandBarButton = exports.CommandBarButton = /** @class */ (function (_super) { tslib_1.__extends(CommandBarButton, _super); function CommandBarButton() { return _super !== null && _super.apply(this, arguments) || this; } CommandBarButton.prototype.render = function () { var _a; var styles = (_a = this.props, _a.styles), theme = _a.theme; return (React.createElement(BaseButton_1.BaseButton, tslib_1.__assign({}, this.props, { variantClassName: "ms-Button--commandBar", styles: (0, CommandBarButton_styles_1.getStyles)(theme, styles), onRenderDescription: Utilities_1.nullRender }))); }; CommandBarButton = tslib_1.__decorate([ (0, Utilities_1.customizable)('CommandBarButton', ['theme', 'styles'], true) ], CommandBarButton); return CommandBarButton; }(React.Component)); }); //# sourceMappingURL=CommandBarButton.js.map