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

//#region src/components/DictionaryEditor/NodeWrapper/InsertionWrapper.tsx
const InsertionWrapper = (props) => {
	const { keyPath, section } = props;
	const newKeyPath = [...keyPath, { type: NodeType.Insertion }];
	const subSection = section[NodeType.Insertion];
	return /* @__PURE__ */ jsx("div", {
		className: "ml-2 grid grid-cols-[auto,1fr] gap-2",
		children: /* @__PURE__ */ jsx(NodeWrapper, {
			...props,
			keyPath: newKeyPath,
			section: subSection
		})
	});
};

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