import { mosaicTheme } from "./theme.js";
import React from "react";
import { jsx } from "@emotion/react/jsx-runtime";
import { CacheProvider, ThemeContext } from "@emotion/react";
import createCache from "@emotion/cache";

//#region src/mosaic/theme-provider.tsx
const mosaicCache = createCache({ key: "mosaic" });
const MosaicThemeProvider = ({ children }) => {
	return /* @__PURE__ */ jsx(CacheProvider, {
		value: mosaicCache,
		children: /* @__PURE__ */ jsx(ThemeContext.Provider, {
			value: mosaicTheme,
			children
		})
	});
};
const useMosaicTheme = () => React.useContext(ThemeContext);

//#endregion
export { MosaicThemeProvider, useMosaicTheme };
//# sourceMappingURL=theme-provider.js.map