"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getAnnotationNameAndStartStopString;
function getAnnotationNameAndStartStopString(_ref) {
  var name = _ref.name,
      start = _ref.start,
      end = _ref.end,
      type = _ref.type;

  var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
      startText = _ref2.startText,
      isPart = _ref2.isPart;

  var typeToUse = type;
  if (isPart) {
    typeToUse = "Part";
  }
  return (startText ? startText : "") + " " + (typeToUse ? typeToUse + " -" : "") + " " + (name ? name : "") + " Start: " + (start + 1) + " End: " + (end + 1) + " ";
}