const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/PisellCards/components/MultilevelCard/components/CardWrapper.tsx
/**
* CardWrapper 组件
* 主卡片包装器，负责注入事件监听
*/
const CardWrapper = (props) => {
	const { children, trigger, onClick, onMouseEnter, onMouseLeave, className } = props;
	if (!react.default.isValidElement(children)) {
		console.warn("[MultilevelCard] card 必须是 ReactElement");
		return /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, children);
	}
	return react.default.cloneElement(children, {});
};
//#endregion
exports.CardWrapper = CardWrapper;
