import { __assign } from "tslib";
/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
import { View } from 'react-native';
import { Button, Text } from '@fluentui/react-native';
import { Stack } from '@fluentui-react-native/stack';
import { BUTTON_TEST_COMPONENT_DEPRECATED, BUTTON_ON_PRESS_DEPRECATED, BUTTON_NO_A11Y_LABEL_COMPONENT_DEPRECATED, BUTTON_ACCESSIBILITY_LABEL_DEPRECATED, BUTTON_TEST_COMPONENT_LABEL_DEPRECATED, } from '../../../../../E2E/src/ButtonLegacy/consts';
import { stackStyle } from '../../Common/styles';
import { testProps } from '../../Common/TestProps';
export 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(View, null,
        React.createElement(Stack, { style: stackStyle },
            React.createElement(Button, __assign({ content: "This is a button for E2E testing", onClick: onClick, accessibilityLabel: BUTTON_ACCESSIBILITY_LABEL_DEPRECATED }, testProps(BUTTON_TEST_COMPONENT_DEPRECATED))),
            React.createElement(Button, __assign({ content: BUTTON_TEST_COMPONENT_LABEL_DEPRECATED, onClick: onClick }, testProps(BUTTON_NO_A11Y_LABEL_COMPONENT_DEPRECATED))),
            buttonPressed ? (React.createElement(Text
            /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
            , __assign({}, testProps(BUTTON_ON_PRESS_DEPRECATED)), "Button Pressed")) : null)));
};
//# sourceMappingURL=E2EButtonTest.js.map