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/booking/info/service/like/index.tsx
const Like = ({ status, onChange, className, style }) => {
	const url = status === "like" ? likeHeart : likeHideHeart;
	return /* @__PURE__ */ React.createElement("img", {
		style,
		src: url,
		className: classNames("like-icon", className),
		onClick: (e) => {
			if (!onChange) return;
			e.preventDefault();
			e.stopPropagation();
			onChange === null || onChange === void 0 || onChange(status === "like" ? "common" : "like");
		}
	});
};
//#endregion
export { Like as default };
