import { ThemeProvider } from "@rmwc/theme";
import React from "react";
import { themeOptions } from "./services/ui-service/ui-theming";
import { useSelector } from "./store/redux-separate-context";
import { selectTheme } from "./domains/global/selectors";
export const RMWCThemeProvider = ({ children }) => {
    const theme = useSelector(selectTheme);
    return React.createElement(ThemeProvider, { options: themeOptions[theme] }, children);
};
export const withRMWCThemeProvider = (Component) => (props) => (React.createElement(RMWCThemeProvider, null,
    React.createElement(Component, Object.assign({}, props))));
//# sourceMappingURL=rmwc-theme-provider.js.map