"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.E2EButtonTest_deprecated = 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 e2e_testing_1 = require("@fluentui-react-native/e2e-testing");
const stack_1 = require("@fluentui-react-native/stack");
const styles_1 = require("../../Common/styles");
const TestProps_1 = require("../../Common/TestProps");
const E2EButtonTest_deprecated = () => {
    const [buttonPressed, setButtonPressed] = React.useState(false);
    const onClick = React.useCallback(() => {
        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, { content: "This is a button for E2E testing", onClick: onClick, accessibilityLabel: e2e_testing_1.BUTTON_ACCESSIBILITY_LABEL_DEPRECATED, ...(0, TestProps_1.testProps)(e2e_testing_1.BUTTON_TEST_COMPONENT_DEPRECATED) }),
            React.createElement(react_native_2.Button, { content: e2e_testing_1.BUTTON_TEST_COMPONENT_LABEL_DEPRECATED, onClick: onClick, ...(0, TestProps_1.testProps)(e2e_testing_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. */
            , { ...(0, TestProps_1.testProps)(e2e_testing_1.BUTTON_ON_PRESS_DEPRECATED) }, "Button Pressed")) : null)));
};
exports.E2EButtonTest_deprecated = E2EButtonTest_deprecated;
//# sourceMappingURL=E2EButtonTest.js.map