"use client";
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/core/factory/factory.tsx
function identity(value) {
	return value;
}
function factory(ui) {
	const Component = ui;
	Component.extend = identity;
	Component.withProps = (fixedProps) => {
		const Extended = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
			...fixedProps,
			...props
		});
		Extended.extend = Component.extend;
		Extended.displayName = `WithProps(${Component.displayName})`;
		return Extended;
	};
	return Component;
}
function genericFactory(ui) {
	return factory(ui);
}
//#endregion
exports.factory = factory;
exports.genericFactory = genericFactory;
exports.identity = identity;

//# sourceMappingURL=factory.cjs.map