const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/pisellCard/index.tsx
/**
* Pisell 卡片容器组件
* @param props
* @constructor
*/
const PisellCard = (props) => {
	const { borderRadius = 12, padding = 16, loading = false, selected = false, bordered = true, disabled = false, style, className, isClickable = true } = props;
	(0, react.useEffect)(() => {
		document.body.id = "body";
	}, []);
	const cardProps = require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, {
		style: require_objectSpread2._objectSpread2({
			"--card-padding": `${padding}px`,
			"--card-borderRadius": `${borderRadius}px`
		}, style),
		className: (0, classnames.default)("pisell-card-wrap", selected && "pisell-card-wrap-selected", disabled && "pisell-card-wrap-disabled", !isClickable && "pisell-card-wrap-clickable", className)
	});
	return /* @__PURE__ */ react.default.createElement(antd.Card, cardProps);
};
//#endregion
exports.default = PisellCard;
