UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

18 lines 802 B
import * as tslib_1 from "tslib"; import * as React from 'react'; import { CalloutContent } from './CalloutContent'; import { Layer } from '../../Layer'; var Callout = /** @class */ (function (_super) { tslib_1.__extends(Callout, _super); function Callout() { return _super !== null && _super.apply(this, arguments) || this; } Callout.prototype.render = function () { var _a = this.props, layerProps = _a.layerProps, rest = tslib_1.__rest(_a, ["layerProps"]); var content = React.createElement(CalloutContent, tslib_1.__assign({}, rest)); return this.props.doNotLayer ? content : React.createElement(Layer, tslib_1.__assign({}, layerProps), content); }; return Callout; }(React.Component)); export { Callout }; //# sourceMappingURL=Callout.js.map