import { PREFIX } from "../index.js";
import React from "react";
import { Skeleton } from "antd";
import classNames from "classnames";
//#region src/plus/productSelect/ProductCard/ProductCardSkeleton.tsx
const ProductCardSkeleton = ({ className, style, isProductCover = true, item }) => {
	if ((item === null || item === void 0 ? void 0 : item.__typename) === "category") return /* @__PURE__ */ React.createElement(Skeleton.Input, {
		active: true,
		size: "small",
		block: false
	});
	return /* @__PURE__ */ React.createElement("div", {
		className: classNames(`${PREFIX}__product-card`, className),
		style
	}, isProductCover && /* @__PURE__ */ React.createElement(Skeleton.Image, {
		active: true,
		style: {
			width: 180,
			height: 126
		}
	}), /* @__PURE__ */ React.createElement(Skeleton, {
		active: true,
		paragraph: { rows: 2 }
	}));
};
//#endregion
export { ProductCardSkeleton as default };
