const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
let src_components_booking_info_service_like_like_heart_png = require("./like-heart.png");
src_components_booking_info_service_like_like_heart_png = require_runtime.__toESM(src_components_booking_info_service_like_like_heart_png);
let src_components_booking_info_service_like_like_hide_heart_png = require("./like-hide-heart.png");
src_components_booking_info_service_like_like_hide_heart_png = require_runtime.__toESM(src_components_booking_info_service_like_like_hide_heart_png);
require("./index.less");
//#region src/components/booking/info/service/like/index.tsx
const Like = ({ status, onChange, className, style }) => {
	const url = status === "like" ? src_components_booking_info_service_like_like_heart_png.default : src_components_booking_info_service_like_like_hide_heart_png.default;
	return /* @__PURE__ */ react.default.createElement("img", {
		style,
		src: url,
		className: (0, classnames.default)("like-icon", className),
		onClick: (e) => {
			if (!onChange) return;
			e.preventDefault();
			e.stopPropagation();
			onChange === null || onChange === void 0 || onChange(status === "like" ? "common" : "like");
		}
	});
};
//#endregion
exports.default = Like;
