"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ButtonIconTest_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 iconExamples_1 = require("../../Common/iconExamples");
var styles_1 = require("../../Common/styles");
var CustomizedIconButton = react_native_2.Button.customize({
    tokens: { iconColor: 'red' },
    content: { style: { marginStart: 5 } },
});
var ButtonIconTest_deprecated = function () {
    /* eslint-disable @typescript-eslint/no-var-requires */
    // SVG-based icons are not available on all platforms yet
    var svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(react_native_1.Platform.OS);
    var iconProps = { svgSource: iconExamples_1.svgProps, width: 20, height: 20 };
    return (React.createElement(react_native_1.View, null,
        React.createElement(stack_1.Stack, { style: styles_1.stackStyle },
            React.createElement(react_native_2.Button, { startIcon: iconExamples_1.testImage, content: "Button with png Icon", tooltip: "button tooltip" }),
            svgIconsEnabled ? (React.createElement(react_native_2.Button, { startIcon: tslib_1.__assign(tslib_1.__assign({}, iconProps), { color: 'red' }), content: "Button with svg Icon", tooltip: "button tooltip" })) : null,
            svgIconsEnabled ? (React.createElement(CustomizedIconButton, { startIcon: iconProps, content: "Button with Customized Icon", tooltip: "button tooltip" })) : null,
            React.createElement(react_native_2.Text, null, "End Button icon"),
            svgIconsEnabled ? React.createElement(CustomizedIconButton, { endIcon: iconProps, content: "Button with Right Icon", tooltip: "button tooltip" }) : null)));
};
exports.ButtonIconTest_deprecated = ButtonIconTest_deprecated;
//# sourceMappingURL=ButtonIconTest.js.map