@uifabric/experiments
Version:
Experimental React components for building experiences for Microsoft 365.
13 lines • 805 B
JavaScript
define(["require", "exports", "react", "office-ui-fabric-react", "../../../Utilities"], function (require, exports, React, office_ui_fabric_react_1, Utilities_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PersonaCoinInitials = function (props) {
var initials = (typeof props.initials === 'string' && props.initials) ||
Utilities_1.getInitials(props.text, Utilities_1.getRTL(), props.allowPhoneInitials);
if (initials) {
return React.createElement(office_ui_fabric_react_1.Text, { className: props.className }, initials);
}
return React.createElement(office_ui_fabric_react_1.Icon, { iconName: "Contact", className: props.className });
};
});
//# sourceMappingURL=PersonaCoinInitials.js.map