"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 Checkbox_1 = require("office-ui-fabric-react/lib/Checkbox");
var Label_1 = require("office-ui-fabric-react/lib/Label");
var Stack_1 = require("office-ui-fabric-react/lib/Stack");
var example_data_1 = require("@uifabric/example-data");
exports.PersonaBasicExample = function () {
    var _a = React.useState(true), renderDetails = _a[0], updateRenderDetails = _a[1];
    var onChange = function (ev, checked) {
        updateRenderDetails(!!checked);
    };
    var examplePersona = {
        imageUrl: example_data_1.TestImages.personaFemale,
        imageInitials: 'AL',
        text: 'Annie Lindqvist',
        secondaryText: 'Software Engineer',
        tertiaryText: 'In a meeting',
        optionalText: 'Available at 4:00pm'
    };
    return (React.createElement(Stack_1.Stack, { tokens: { childrenGap: 10 } },
        React.createElement(Checkbox_1.Checkbox, { label: "Include persona details", checked: renderDetails, onChange: onChange }),
        React.createElement(Label_1.Label, null, "Size 8 Persona, with no presence"),
        React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { size: Persona_1.PersonaSize.size8, hidePersonaDetails: !renderDetails })),
        React.createElement(Label_1.Label, null, "Size 8 Persona, with presence"),
        React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { size: Persona_1.PersonaSize.size8, presence: Persona_1.PersonaPresence.offline, hidePersonaDetails: !renderDetails })),
        React.createElement(Label_1.Label, null, "Size 24 Persona"),
        React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { size: Persona_1.PersonaSize.size24, presence: Persona_1.PersonaPresence.online, hidePersonaDetails: !renderDetails })),
        React.createElement(Label_1.Label, null, "Size 32 Persona"),
        React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { size: Persona_1.PersonaSize.size32, presence: Persona_1.PersonaPresence.online, hidePersonaDetails: !renderDetails })),
        React.createElement(Label_1.Label, null, "Size 40 Persona"),
        React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { size: Persona_1.PersonaSize.size40, presence: Persona_1.PersonaPresence.away, hidePersonaDetails: !renderDetails })),
        React.createElement(Label_1.Label, null, "Size 48 Persona (default) "),
        React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { hidePersonaDetails: !renderDetails, presence: Persona_1.PersonaPresence.busy })),
        React.createElement(Label_1.Label, null, "Size 56 Persona (default) "),
        React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { size: Persona_1.PersonaSize.size56, hidePersonaDetails: !renderDetails, presence: Persona_1.PersonaPresence.online })),
        React.createElement(Label_1.Label, null, "Size 72 Persona"),
        React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { size: Persona_1.PersonaSize.size72, presence: Persona_1.PersonaPresence.dnd, hidePersonaDetails: !renderDetails })),
        React.createElement(Label_1.Label, null, "Size 100 Persona"),
        React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { size: Persona_1.PersonaSize.size100, presence: Persona_1.PersonaPresence.blocked, hidePersonaDetails: !renderDetails })),
        React.createElement(Label_1.Label, null, "Size 120 Persona"),
        React.createElement(Persona_1.Persona, tslib_1.__assign({}, examplePersona, { size: Persona_1.PersonaSize.size120, presence: Persona_1.PersonaPresence.away, hidePersonaDetails: !renderDetails }))));
};
//# sourceMappingURL=Persona.Basic.Example.js.map