@hitachivantara/uikit-react-shared
Version:
Shared React contexts for UI Kit.
12 lines (11 loc) • 366 B
JavaScript
import { createContext } from "react";
import createCache from "@emotion/cache";
//#region src/context/EmotionContext.ts
var defaultCacheKey = "hv";
var defaultEmotionCache = createCache({
key: "hv",
prepend: true
});
var EmotionContext = createContext({ cache: defaultEmotionCache });
//#endregion
export { EmotionContext, defaultCacheKey, defaultEmotionCache };