import React from 'react';
import { PREFIX } from "../constants";
import { stopPropagation } from "../utils/render";
var LineAction = function LineAction(_ref) {
  var text = _ref.text,
    onAction = _ref.onAction;
  if (!text) return null;
  return /*#__PURE__*/React.createElement("div", {
    className: "".concat(PREFIX, "__line-action")
  }, /*#__PURE__*/React.createElement("button", {
    type: "button",
    onClick: function onClick(event) {
      stopPropagation(event);
      onAction === null || onAction === void 0 || onAction();
    }
  }, text));
};
export default LineAction;