"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultRadioGroup = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_native_1 = require("react-native");
const react_native_2 = require("@fluentui/react-native");
const radio_group_1 = require("@fluentui-react-native/radio-group");
const DefaultRadioGroup = () => {
    // Client's example onChange function
    const onChange = React.useCallback((key) => {
        console.log(key);
    }, []);
    const [selectedKey, setSelectedKey] = React.useState('C');
    const onChange2 = React.useCallback((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