office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
25 lines • 965 B
JavaScript
import * as tslib_1 from "tslib";
/* tslint:disable:no-unused-variable */
import * as React from 'react';
/* tslint:enable:no-unused-variable */
import { BaseComponent } from '../../Utilities';
import { CalloutContent } from './CalloutContent';
import { Layer } from '../../Layer';
var Callout = /** @class */ (function (_super) {
tslib_1.__extends(Callout, _super);
function Callout(props) {
var _this = _super.call(this, props) || this;
_this._warnDeprecations({
'targetPoint': 'target',
'useTargetPoint': 'target',
});
return _this;
}
Callout.prototype.render = function () {
var content = (React.createElement(CalloutContent, tslib_1.__assign({}, this.props)));
return this.props.doNotLayer ? content : (React.createElement(Layer, null, content));
};
return Callout;
}(BaseComponent));
export { Callout };
//# sourceMappingURL=Callout.js.map