@hitachivantara/uikit-react-shared
Version:
Shared React contexts for the NEXT UI Kit.
19 lines (18 loc) • 413 B
JavaScript
import { createContext } from "react";
const HvThemeContext = createContext({
activeTheme: void 0,
colorModes: [],
selectedMode: "light",
changeMode: () => {
},
rootId: void 0,
// TODO: remove once backwards-compatibility is not needed anymore
// @ts-expect-error removed from API interfaces to avoid usage
themes: [],
selectedTheme: "",
changeTheme() {
}
});
export {
HvThemeContext
};