import React from "react";
import { ThemeProvider } from "styled-components";
import { DefaultTheme, DarkTheme } from "@netdata/netdata-ui";
import "./types/global";
import { GlobalColors } from "./global.colors";
const dashboardThemes = {
    unspecified: "slate",
    light: "white",
    dark: "slate",
};
const uiKitThemes = {
    unspecified: DarkTheme,
    light: DefaultTheme,
    dark: DarkTheme,
};
export const DashboardThemeProvider = ({ theme = "unspecified", children, }) => {
    window.netdataTheme = dashboardThemes[theme] || dashboardThemes.unspecified;
    window.NETDATA.updateTheme();
    return (React.createElement(ThemeProvider, { theme: uiKitThemes[theme] || uiKitThemes.unspecified },
        React.createElement(GlobalColors, null),
        children));
};
//# sourceMappingURL=theme-provider.js.map