16 lines
751 B
JavaScript
16 lines
751 B
JavaScript
define(["require", "exports", "react"], function (require, exports, React) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.wrapPersona = void 0;
|
|
/**
|
|
* function to override the default onRender callbacks
|
|
*/
|
|
var wrapPersona = function (example, shouldWrapPersonaCoin) {
|
|
if (shouldWrapPersonaCoin === void 0) { shouldWrapPersonaCoin = false; }
|
|
return function (coinProps, defaultCoinRenderer) {
|
|
return shouldWrapPersonaCoin ? (React.createElement("span", { id: "persona-coin-container" }, defaultCoinRenderer(coinProps))) : (defaultCoinRenderer(coinProps));
|
|
};
|
|
};
|
|
exports.wrapPersona = wrapPersona;
|
|
});
|
|
//# sourceMappingURL=test-utils.js.map
|