"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StandardUsage = void 0;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var react_native_1 = require("react-native");
var react_native_2 = require("@fluentui/react-native");
var theme_types_1 = require("@fluentui-react-native/theme-types");
var styles_1 = require("./styles");
var StyledPicker_1 = require("../Common/StyledPicker");
var styles_2 = require("../Common/styles");
var allSizes = [
    styles_1.undefinedText,
    'size8',
    'size24',
    'size32',
    'size40',
    'size48',
    'size56',
    'size72',
    'size100',
    'size120',
];
var allColors = [
    styles_1.undefinedText,
    'cornflower',
    'blue',
    'royalBlue',
    'teal',
    'forest',
    'darkGreen',
    'berry',
    'hotPink',
    'grape',
    'purple',
    'pumpkin',
    'red',
    'burgundy',
    'orchid',
    'brass',
    'darkRed',
    'beige',
    'platinum',
    'steel',
    'brown',
];
var allPresences = [styles_1.undefinedText, 'none', 'online', 'offline', 'busy', 'dnd', 'blocked', 'away'];
var StandardUsage = function () {
    var _a = React.useState(true), showImage = _a[0], setShowImage = _a[1];
    var _b = React.useState('size72'), imageSize = _b[0], setImageSize = _b[1];
    var _c = React.useState('brass'), coinColor = _c[0], setCoinColor = _c[1];
    var _d = React.useState('online'), presence = _d[0], setPresence = _d[1];
    var onSizeChange = React.useCallback(function (value) { return setImageSize(value); }, []);
    var onColorChange = React.useCallback(function (value) { return setCoinColor(value); }, []);
    var onPresenceChange = React.useCallback(function (value) { return setPresence(value); }, []);
    var theme = (0, theme_types_1.useTheme)();
    var textStyles = { color: theme.colors.inputText };
    return (React.createElement(react_native_1.View, { style: styles_2.commonTestStyles.root },
        React.createElement(react_native_1.View, { style: styles_2.commonTestStyles.settingsPicker },
            React.createElement(react_native_1.View, { style: styles_2.commonTestStyles.switch },
                React.createElement(react_native_1.Text, { style: textStyles }, "Show image"),
                React.createElement(react_native_1.Switch, { value: showImage, onValueChange: setShowImage })),
            React.createElement(StyledPicker_1.StyledPicker, { prompt: "Size", selected: imageSize, onChange: onSizeChange, collection: allSizes }),
            React.createElement(StyledPicker_1.StyledPicker, { prompt: "Coin color", selected: coinColor, onChange: onColorChange, collection: allColors }),
            React.createElement(StyledPicker_1.StyledPicker, { prompt: "Presence status", selected: presence, onChange: onPresenceChange, collection: allPresences })),
        React.createElement(react_native_1.View, { style: styles_2.commonTestStyles.pickerControlled },
            React.createElement(react_native_2.PersonaCoin, { size: imageSize === styles_1.undefinedText ? undefined : imageSize, initials: "SN", imageDescription: "Photo of Satya Nadella", presence: presence === styles_1.undefinedText ? undefined : presence, imageUrl: showImage ? styles_1.satyaPhotoUrl : undefined, coinColorFluent: coinColor === styles_1.undefinedText ? undefined : coinColor }))));
};
exports.StandardUsage = StandardUsage;
//# sourceMappingURL=StandardUsage.js.map