"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShadowButtonTestSection = 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 button_1 = require("@fluentui-react-native/button");
var experimental_shadow_1 = require("@fluentui-react-native/experimental-shadow");
var framework_1 = require("@fluentui-react-native/framework");
var ShadowTestPageStyles_1 = require("./ShadowTestPageStyles");
var iconExamples_1 = require("../Common/iconExamples");
var styles_1 = require("../Common/styles");
var styles = react_native_1.StyleSheet.create({ marginBetweenComponentsWithShadow: { margin: 10 } });
var CustomFABNoShadow = react_native_2.FAB.customize({ shadowToken: undefined });
var CustomFABShadow64 = react_native_2.FAB.customize({
    shadowToken: { ambient: { x: 0, y: 0, blur: 8, color: '#00000033' }, key: { x: 0, y: 32, blur: 64, color: '#0000003d' } },
});
var platformSupportsShadow = react_native_1.Platform.OS !== 'android';
var platformSupportsFAB = react_native_1.Platform.OS === 'ios' || react_native_1.Platform.OS === 'android';
var ShadowButtonTestSection = function () {
    var t = (0, framework_1.useFluentTheme)();
    if (platformSupportsShadow) {
        return (React.createElement(react_native_1.View, { style: (0, ShadowTestPageStyles_1.shadowTestPageStyles)(t).backgroundColor },
            platformSupportsShadow && platformSupportsFAB && (React.createElement(react_native_1.View, { style: styles_1.stackStyle },
                React.createElement(react_native_2.FAB, { icon: iconExamples_1.iconProps, style: styles.marginBetweenComponentsWithShadow }, "FAB with default shadow"),
                React.createElement(CustomFABShadow64, { icon: iconExamples_1.iconProps, style: styles.marginBetweenComponentsWithShadow }, "Custom FAB with shadow64"),
                React.createElement(CustomFABNoShadow, { icon: iconExamples_1.iconProps, style: styles.marginBetweenComponentsWithShadow }, "Custom FAB with no shadow"))),
            platformSupportsShadow && (React.createElement(react_native_1.View, { style: styles_1.stackStyle },
                React.createElement(experimental_shadow_1.Shadow, { shadowToken: t.shadows['shadow16'] },
                    React.createElement(button_1.ButtonV1, { style: styles.marginBetweenComponentsWithShadow }, "Button with shadow16")),
                React.createElement(react_native_1.View, null,
                    React.createElement(button_1.ButtonV1, { style: styles.marginBetweenComponentsWithShadow }, "Button without shadow"))))));
    }
    else {
        return (React.createElement(react_native_1.View, { style: styles_1.stackStyle },
            React.createElement(react_native_2.Text, null, "Shadows not implemented on this platform at this time")));
    }
};
exports.ShadowButtonTestSection = ShadowButtonTestSection;
//# sourceMappingURL=ShadowButtonTestSection.js.map