import { createOfficeTheme, getThemingModule } from '@fluentui-react-native/win32-theme';
export var themeChoices = [
    { label: 'Default', value: 'Default' },
    { label: 'Office', value: 'Office' },
    { label: 'Caterpillar', value: 'Caterpillar' },
];
function applyCaterpillarTheme(parent) {
    var _a;
    return ((_a = parent.host) === null || _a === void 0 ? void 0 : _a.appearance) === 'dark'
        ? {
            colors: {
                buttonBackground: '#111111',
                buttonBackgroundHovered: '#ffcd11',
                buttonBackgroundPressed: '#eeeeee',
                buttonText: '#ffffff',
                buttonTextPressed: '#111111',
                buttonTextHovered: '#000000',
            },
            components: {
                Button: {
                    borderWidth: 0,
                    tokens: {
                        borderWidth: 0,
                    },
                },
            },
        }
        : {
            colors: {
                buttonBackground: '#ffcd11',
                buttonBackgroundHovered: '#111111',
                buttonBackgroundPressed: '#eeeeee',
                buttonText: '#000000',
                buttonTextPressed: '#111111',
                buttonTextHovered: '#ffffff',
            },
            components: {
                Button: {
                    borderWidth: 0,
                    tokens: {
                        borderWidth: 0,
                    },
                },
            },
        };
}
var themingModule = getThemingModule()[0];
/** apply the currently active theme layering */
export function applyTheme(parent, name, appearance) {
    switch (name) {
        case 'Office':
            return themingModule ? createOfficeTheme({ appearance: appearance, paletteName: 'Dialogs_FluentSV' }).theme : {};
        case 'Caterpillar':
            return applyCaterpillarTheme(parent);
        default:
            return {};
    }
}
//# sourceMappingURL=applyTheme.js.map