import React from "react";
import likeHeart from "./like-heart.png";
import likeHideHeart from "./like-hide-heart.png";
import "./index.less";
import classNames from "classnames";
var Like = function Like(_ref) {
  var status = _ref.status,
    onChange = _ref.onChange,
    className = _ref.className,
    style = _ref.style;
  var url = status === "like" ? likeHeart : likeHideHeart;
  return /*#__PURE__*/React.createElement("img", {
    style: style,
    src: url,
    className: classNames("like-icon", className),
    onClick: function onClick(e) {
      if (!onChange) {
        return;
      }
      e.preventDefault();
      e.stopPropagation();
      onChange === null || onChange === void 0 || onChange(status === "like" ? "common" : "like");
    }
  });
};
export default Like;