import React from "react";
import classNames from "classnames";
import likeHeart from "./like-heart.png";
import likeHideHeart from "./like-hide-heart.png";
import "./index.less";
//#region src/components/productCard/components/Time/components/Like/index.tsx
const Like = ({ status, onLike, className, style, isShowChangeResource }) => {
	const url = status === "like" ? likeHeart : likeHideHeart;
	const handleClick = (e) => {
		if (!onLike) return;
		e.preventDefault();
		e.stopPropagation();
		onLike === null || onLike === void 0 || onLike(status === "like" ? "common" : "like");
	};
	return /* @__PURE__ */ React.createElement("div", {
		onClick: handleClick,
		className: `pisell-lowcode-product-card-like-wrap ${isShowChangeResource ? "pisell-lowcode-change-resource-like-wrap" : ""}`
	}, /* @__PURE__ */ React.createElement("img", {
		style,
		src: url,
		className: classNames("like-icon", className)
	}));
};
//#endregion
export { Like as default };
