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