import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import React, { useEffect } from "react";
import { Card } from "antd";
import classNames from "classnames";
import "./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;
	useEffect(() => {
		document.body.id = "body";
	}, []);
	const cardProps = _objectSpread2(_objectSpread2({}, props), {}, {
		style: _objectSpread2({
			"--card-padding": `${padding}px`,
			"--card-borderRadius": `${borderRadius}px`
		}, style),
		className: classNames("pisell-card-wrap", selected && "pisell-card-wrap-selected", disabled && "pisell-card-wrap-disabled", !isClickable && "pisell-card-wrap-clickable", className)
	});
	return /* @__PURE__ */ React.createElement(Card, cardProps);
};
//#endregion
export { PisellCard as default };
