react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
15 lines (13 loc) • 424 B
JavaScript
import { useHTMLContext } from "./HTMLProvider.mjs";
import { renderHTML } from "./HTMLRenderer.mjs";
//#region src/html/HTMLRendererPlugin.tsx
const HTMLRendererPlugin = (props) => {
const { html, userComponents } = props;
return renderHTML(html, { components: {
...useHTMLContext()?.components,
...userComponents
} });
};
//#endregion
export { HTMLRendererPlugin };
//# sourceMappingURL=HTMLRendererPlugin.mjs.map