import { NodeWrapper } from "./index.mjs";
import { jsx } from "react/jsx-runtime";
import { NodeType } from "@intlayer/types";

//#region src/components/DictionaryEditor/NodeWrapper/TranslationWrapper.tsx
const TranslationWrapper = (props) => {
	const { keyPath, section, locale } = props;
	const newKeyPathEl = {
		type: NodeType.Translation,
		key: locale
	};
	const newKeyPath = [...keyPath, newKeyPathEl];
	const subSection = section.translation[locale];
	return /* @__PURE__ */ jsx(NodeWrapper, {
		...props,
		keyPath: newKeyPath,
		section: subSection
	});
};

//#endregion
export { TranslationWrapper };
//# sourceMappingURL=TranslationWrapper.mjs.map