"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Persona_1 = require("office-ui-fabric-react/lib/Persona");
var TestImages_1 = require("../../../common/TestImages");
require("./PersonaExample.scss");
var exampleStylesImport = require("../../../common/_exampleStyles.scss");
var exampleStyles = exampleStylesImport;
var examplePersona = {
    imageUrl: TestImages_1.TestImages.personaMale,
    imageInitials: 'TR',
    text: 'Ted Randall',
    secondaryText: 'Project Manager',
    optionalText: 'Available at 4:00pm'
};
var PersonaCustomCoinRenderExample = /** @class */ (function (_super) {
    tslib_1.__extends(PersonaCustomCoinRenderExample, _super);
    function PersonaCustomCoinRenderExample() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this._onRenderCoin = function (props) {
            var coinSize = props.coinSize, imageUrl = props.imageUrl, imageAlt = props.imageAlt;
            return (React.createElement("div", { className: "customExampleCoin" },
                React.createElement("img", { src: imageUrl, alt: imageAlt, width: coinSize, height: coinSize })));
        };
        return _this;
    }
    PersonaCustomCoinRenderExample.prototype.render = function () {
        return (React.createElement("div", { className: "ms-PersonaExample" },
            React.createElement("div", { className: exampleStyles.exampleLabel }, "Custom functional element in place of persona coin's image"),
            React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { size: Persona_1.PersonaSize.size72, presence: Persona_1.PersonaPresence.online, onRenderCoin: this._onRenderCoin, imageAlt: 'Custom Coin Image', coinSize: 72 }))));
    };
    return PersonaCustomCoinRenderExample;
}(React.Component));
exports.PersonaCustomCoinRenderExample = PersonaCustomCoinRenderExample;
//# sourceMappingURL=Persona.CustomCoinRender.Example.js.map