import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import useEngineContext from "../../hooks/useEngineContext.js";
import React from "react";
import { isFunction } from "@pisell/utils";
//#region src/components/lowCodePage/index.tsx
const _excluded = ["id"];
const LowCodePage = (props) => {
	var _context$appHelper;
	const { id } = props, others = _objectWithoutProperties(props, _excluded);
	const { RenderLowCodeByKey, getRenderLowCodeByKey } = ((_context$appHelper = useEngineContext().appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {};
	const Com = isFunction(getRenderLowCodeByKey) ? getRenderLowCodeByKey() : RenderLowCodeByKey;
	if (!Com) return /* @__PURE__ */ React.createElement("div", null, "RenderLowCodeByKey is not found");
	return /* @__PURE__ */ React.createElement(Com, _objectSpread2(_objectSpread2({}, others), {}, {
		id,
		key: id
	}));
};
//#endregion
export { LowCodePage as default };
