react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
16 lines (13 loc) • 470 B
JavaScript
'use client';
import { createContext, useContext } from "react";
import { jsx } from "react/jsx-runtime";
//#region src/html/HTMLProvider.tsx
const HTMLContext = createContext(void 0);
const useHTMLContext = () => useContext(HTMLContext);
const HTMLProvider = ({ children, components }) => /* @__PURE__ */ jsx(HTMLContext.Provider, {
value: { components },
children
});
//#endregion
export { HTMLProvider, useHTMLContext };
//# sourceMappingURL=HTMLProvider.mjs.map