"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.E2EButtonTest_deprecated = void 0;
var tslib_1 = require("tslib");
/* eslint-disable @typescript-eslint/no-var-requires */
var React = tslib_1.__importStar(require("react"));
var react_native_1 = require("react-native");
var react_native_2 = require("@fluentui/react-native");
var stack_1 = require("@fluentui-react-native/stack");
var consts_1 = require("../../../../../E2E/src/ButtonLegacy/consts");
var styles_1 = require("../../Common/styles");
var TestProps_1 = require("../../Common/TestProps");
var E2EButtonTest_deprecated = function () {
    var _a = React.useState(false), buttonPressed = _a[0], setButtonPressed = _a[1];
    var onClick = React.useCallback(function () {
        setButtonPressed(!buttonPressed);
    }, [buttonPressed]);
    return (React.createElement(react_native_1.View, null,
        React.createElement(stack_1.Stack, { style: styles_1.stackStyle },
            React.createElement(react_native_2.Button, tslib_1.__assign({ content: "This is a button for E2E testing", onClick: onClick, accessibilityLabel: consts_1.BUTTON_ACCESSIBILITY_LABEL_DEPRECATED }, (0, TestProps_1.testProps)(consts_1.BUTTON_TEST_COMPONENT_DEPRECATED))),
            React.createElement(react_native_2.Button, tslib_1.__assign({ content: consts_1.BUTTON_TEST_COMPONENT_LABEL_DEPRECATED, onClick: onClick }, (0, TestProps_1.testProps)(consts_1.BUTTON_NO_A11Y_LABEL_COMPONENT_DEPRECATED))),
            buttonPressed ? (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.BUTTON_ON_PRESS_DEPRECATED)), "Button Pressed")) : null)));
};
exports.E2EButtonTest_deprecated = E2EButtonTest_deprecated;
//# sourceMappingURL=E2EButtonTest.js.map