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