"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShadowButtonTestSection = void 0;
const React = __importStar(require("react"));
const react_native_1 = require("react-native");
const react_native_2 = require("@fluentui/react-native");
const button_1 = require("@fluentui-react-native/button");
const experimental_shadow_1 = require("@fluentui-react-native/experimental-shadow");
const framework_1 = require("@fluentui-react-native/framework");
const ShadowTestPageStyles_1 = require("./ShadowTestPageStyles");
const iconExamples_1 = require("../Common/iconExamples");
const styles_1 = require("../Common/styles");
const styles = react_native_1.StyleSheet.create({ marginBetweenComponentsWithShadow: { margin: 10 } });
const CustomFABNoShadow = react_native_2.FAB.customize({ shadowToken: undefined });
const 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' } },
});
const platformSupportsShadow = react_native_1.Platform.OS !== 'android';
const platformSupportsFAB = react_native_1.Platform.OS === 'ios' || react_native_1.Platform.OS === 'android';
const ShadowButtonTestSection = () => {
    const 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