"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.E2ECheckboxV1Test = 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 experimental_checkbox_1 = require("@fluentui-react-native/experimental-checkbox");
var stack_1 = require("@fluentui-react-native/stack");
var consts_1 = require("../../../../E2E/src/CheckboxV1/consts");
var styles_1 = require("../Common/styles");
var TestProps_1 = require("../Common/TestProps");
var E2ECheckboxV1Test = function () {
    var _a = React.useState(false), checkboxPressed = _a[0], setCheckboxPressed = _a[1];
    var onClick = React.useCallback(function (_e, checked) {
        setCheckboxPressed(checked);
    }, [setCheckboxPressed]);
    return (React.createElement(react_native_1.View, null,
        React.createElement(stack_1.Stack, { style: styles_1.stackStyle },
            React.createElement(experimental_checkbox_1.Checkbox, tslib_1.__assign({ accessibilityLabel: consts_1.CHECKBOXV1_ACCESSIBILITY_LABEL, disabled: false, label: "Testing accessibilityLabel", onChange: onClick }, (0, TestProps_1.testProps)(consts_1.CHECKBOXV1_TEST_COMPONENT))),
            React.createElement(experimental_checkbox_1.Checkbox, tslib_1.__assign({ label: consts_1.CHECKBOXV1_TEST_COMPONENT_LABEL, required: true }, (0, TestProps_1.testProps)(consts_1.CHECKBOXV1_NO_A11Y_LABEL_COMPONENT))),
            checkboxPressed ? (React.createElement(react_native_2.Text
            /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
            , tslib_1.__assign({}, (0, TestProps_1.testProps)(consts_1.CHECKBOXV1_ON_PRESS)), "Checkbox Selected")) : null)));
};
exports.E2ECheckboxV1Test = E2ECheckboxV1Test;
//# sourceMappingURL=E2ECheckboxV1Test.js.map