"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StandardUsage = void 0;
const React = __importStar(require("react"));
const react_native_1 = require("react-native");
const react_native_2 = require("@fluentui/react-native");
const theme_types_1 = require("@fluentui-react-native/theme-types");
const styles_1 = require("./styles");
const StyledPicker_1 = require("../Common/StyledPicker");
const styles_2 = require("../Common/styles");
const allSizes = [
    styles_1.undefinedText,
    'size8',
    'size24',
    'size32',
    'size40',
    'size48',
    'size56',
    'size72',
    'size100',
    'size120',
];
const allColors = [
    styles_1.undefinedText,
    'cornflower',
    'blue',
    'royalBlue',
    'teal',
    'forest',
    'darkGreen',
    'berry',
    'hotPink',
    'grape',
    'purple',
    'pumpkin',
    'red',
    'burgundy',
    'orchid',
    'brass',
    'darkRed',
    'beige',
    'platinum',
    'steel',
    'brown',
];
const allPresences = [styles_1.undefinedText, 'none', 'online', 'offline', 'busy', 'dnd', 'blocked', 'away'];
const StandardUsage = () => {
    const [showImage, setShowImage] = React.useState(true);
    const [imageSize, setImageSize] = React.useState('size72');
    const [coinColor, setCoinColor] = React.useState('brass');
    const [presence, setPresence] = React.useState('online');
    const onSizeChange = React.useCallback((value) => setImageSize(value), []);
    const onColorChange = React.useCallback((value) => setCoinColor(value), []);
    const onPresenceChange = React.useCallback((value) => setPresence(value), []);
    const theme = (0, theme_types_1.useTheme)();
    const 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