require("../_virtual/_rolldown/runtime.js");
const require_useEngineContext = require("./useEngineContext.js");
let react = require("react");
//#region src/hooks/useComponents.ts
const useComponents = (params) => {
	const { components } = params;
	const { appHelper } = require_useEngineContext.default();
	return (0, react.useMemo)(() => {
		var _utils$getComponents;
		const { utils } = appHelper || {};
		return (utils === null || utils === void 0 || (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
	}, [components]);
};
//#endregion
exports.default = useComponents;
