import { forwardRef, memo } from "react";

//#region src/core/vui.ts
/**
* Component creation utility, which combines forwardRef, memo and ensures correct typing with all props included.
* Config object allows toggling memoization and providing custom 'areEqual' function.
*/
function vui(component, config) {
	const { memoCompare, isMemo = true } = config ?? {};
	if (isMemo) return memo(forwardRef(component), memoCompare);
	return forwardRef(component);
}

//#endregion
export { vui };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=vui.js.map