"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultRadioGroup = void 0;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var react_native_1 = require("react-native");
var radio_group_1 = require("@fluentui-react-native/radio-group");
var DefaultRadioGroup = function () {
    // Client's example onChange function
    var _a = React.useState('Unselected'), unselectedAccessibilityPrefix = _a[0], setPrefix = _a[1];
    var onChange = React.useCallback(function (key) {
        console.log(key);
        if (key == 'W')
            setPrefix('');
        else
            setPrefix('Unselected');
    }, []);
    return (React.createElement(react_native_1.View, null,
        React.createElement(radio_group_1.RadioGroupV1, { label: "RadioGroup Sample", onChange: onChange },
            React.createElement(radio_group_1.Radio, { label: "Option W", value: "W", accessibilityLabel: unselectedAccessibilityPrefix + 'Test Accessibility Label' }),
            React.createElement(radio_group_1.Radio, { label: "Option X", value: "X" }),
            React.createElement(radio_group_1.Radio, { label: "Option Y", value: "Y" }),
            React.createElement(radio_group_1.Radio, { label: "Option Z", value: "Z" }))));
};
exports.DefaultRadioGroup = DefaultRadioGroup;
//# sourceMappingURL=DefaultRadioGroup.android.js.map