UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Office 365.

21 lines 941 B
/*! * Copyright (C) Microsoft Corporation. All rights reserved. */ import * as tslib_1 from "tslib"; import { DefaultButton } from 'office-ui-fabric-react/lib/Button'; import { BaseComponent } from 'office-ui-fabric-react/lib/Utilities'; import * as React from 'react'; import { getSidebarButtonStyles } from './SidebarButton.styles'; var SidebarButton = /** @class */ (function (_super) { tslib_1.__extends(SidebarButton, _super); function SidebarButton() { return _super !== null && _super.apply(this, arguments) || this; } SidebarButton.prototype.render = function () { var _a = this.props, styles = _a.styles, theme = _a.theme; return React.createElement(DefaultButton, tslib_1.__assign({}, this.props, { styles: getSidebarButtonStyles(theme, styles) })); }; return SidebarButton; }(BaseComponent)); export { SidebarButton }; //# sourceMappingURL=SidebarButton.js.map