UNPKG

react-intlayer

Version:

Easily internationalize i18n your React applications with type-safe multilingual content management.

17 lines (14 loc) 546 B
'use client'; import { createElement } from "react"; import { isEnabled } from "@intlayer/editor/isEnabled"; //#region src/editor/ContentSelector.tsx const ContentSelector = ({ children, dictionaryKey, keyPath }) => { if (process.env["INTLAYER_EDITOR_ENABLED"] === "false" || !isEnabled) return children; return createElement("intlayer-content-selector-wrapper", { "key-path": JSON.stringify(keyPath), "dictionary-key": dictionaryKey }, children); }; //#endregion export { ContentSelector }; //# sourceMappingURL=ContentSelector.mjs.map