UNPKG

@fluentui/react

Version:

Reusable React components for building web experiences.

24 lines 1.06 kB
import { __assign, __decorate, __extends } from "tslib"; import * as React from 'react'; import { BaseButton } from '../BaseButton'; import { customizable, nullRender } from '../../../Utilities'; import { getStyles } from './CommandBarButton.styles'; /** * {@docCategory Button} */ export var CommandBarButton = /** @class */ (function (_super) { __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, __assign({}, this.props, { variantClassName: "ms-Button--commandBar", styles: getStyles(theme, styles), onRenderDescription: nullRender }))); }; CommandBarButton = __decorate([ customizable('CommandBarButton', ['theme', 'styles'], true) ], CommandBarButton); return CommandBarButton; }(React.Component)); //# sourceMappingURL=CommandBarButton.js.map