UNPKG

react-intlayer

Version:

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

19 lines (16 loc) 749 B
'use client'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const require_runtime = require('../_virtual/_rolldown/runtime.cjs'); let react = require("react"); let _intlayer_editor_isEnabled = require("@intlayer/editor/isEnabled"); //#region src/editor/ContentSelector.tsx const ContentSelector = ({ children, dictionaryKey, keyPath }) => { if (process.env["INTLAYER_EDITOR_ENABLED"] === "false" || !_intlayer_editor_isEnabled.isEnabled) return children; return (0, react.createElement)("intlayer-content-selector-wrapper", { "key-path": JSON.stringify(keyPath), "dictionary-key": dictionaryKey }, children); }; //#endregion exports.ContentSelector = ContentSelector; //# sourceMappingURL=ContentSelector.cjs.map