"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 react_native_2 = require("@fluentui/react-native");
var radio_group_1 = require("@fluentui-react-native/radio-group");
var DefaultRadioGroup = function () {
    // Client's example onChange function
    var onChange = React.useCallback(function (key) {
        console.log(key);
    }, []);
    var _a = React.useState('C'), selectedKey = _a[0], setSelectedKey = _a[1];
    var onChange2 = React.useCallback(function (key) {
        setSelectedKey(key);
    }, []);
    return (React.createElement(react_native_1.View, null,
        React.createElement(radio_group_1.RadioGroupV1, { label: "Uncontrolled RadioGroup", defaultValue: "X", onChange: onChange },
            React.createElement(radio_group_1.Radio, { label: "Option W", value: "W", accessibilityLabel: "Test Accessibility Label" }),
            React.createElement(radio_group_1.Radio, { label: "Option X", value: "X" }),
            React.createElement(radio_group_1.Radio, { label: "Option Y (disabled)", value: "C", disabled: true }),
            React.createElement(radio_group_1.Radio, { label: "Option Z", value: "Z" })),
        React.createElement(react_native_2.Separator, null),
        React.createElement(radio_group_1.RadioGroupV1, { label: "Controlled RadioGroup", value: selectedKey, onChange: onChange2 },
            React.createElement(react_native_1.View, null,
                React.createElement(radio_group_1.Radio, { label: "Option A", value: "A", accessibilityLabel: "Test Accessibility Label", accessibilityPositionInSet: 1, accessibilitySetSize: 4 }),
                React.createElement(radio_group_1.Radio, { label: "Option B", value: "B", accessibilityPositionInSet: 2, accessibilitySetSize: 4 }),
                React.createElement(radio_group_1.Radio, { label: "Option C", value: "C", accessibilityPositionInSet: 3, accessibilitySetSize: 4 }),
                React.createElement(radio_group_1.Radio, { label: "Option D", value: "D", accessibilityPositionInSet: 4, accessibilitySetSize: 4 })))));
};
exports.DefaultRadioGroup = DefaultRadioGroup;
//# sourceMappingURL=DefaultRadioGroup.js.map