import { isValidElement } from "react";
import { Fragment, jsx } from "react/jsx-runtime";

//#region ../react-intlayer/dist/esm/IntlayerNode.mjs
const renderIntlayerNode = ({ children, value, additionalProps }) => {
	const element = isValidElement(children) ? children : /* @__PURE__ */ jsx(Fragment, { children });
	return new Proxy(element, { get(target, prop, receiver) {
		if (prop === "value") return value;
		if (additionalProps && Object.keys(additionalProps).includes(prop)) return additionalProps[prop];
		return Reflect.get(target, prop, receiver);
	} });
};

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