Files
starface-outlook-sync-addin/node_modules/@fluentui/react/lib-commonjs/components/Persona/test-utils.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

15 lines
648 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapPersona = void 0;
var React = require("react");
/**
* 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