'use client';

import { NodeView } from "./StructureView/StructureView.mjs";
import { jsx } from "react/jsx-runtime";
import { useEditedContent } from "@intlayer/editor-react";

//#region src/components/DictionaryFieldEditor/StructureEditor.tsx
const StructureEditor = ({ dictionary }) => {
	const { content, localId } = dictionary;
	const { editedContent } = useEditedContent();
	return /* @__PURE__ */ jsx(NodeView, {
		section: typeof editedContent?.[localId]?.content === "undefined" ? content : editedContent?.[localId]?.content,
		keyPath: [],
		dictionaryLocalId: localId
	});
};

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