"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getComponentLogs;

function _bluebird() {
  const data = require("bluebird");

  _bluebird = function () {
    return data;
  };

  return data;
}

function _consumer() {
  const data = require("../../../consumer");

  _consumer = function () {
    return data;
  };

  return data;
}

function _bitId() {
  const data = require("../../../bit-id");

  _bitId = function () {
    return data;
  };

  return data;
}

function getComponentLogs(id) {
  return (0, _consumer().loadConsumer)().then(
  /*#__PURE__*/
  function () {
    var _ref = (0, _bluebird().coroutine)(function* (consumer) {
      const bitId = consumer.getParsedId(id);
      return consumer.scope.loadComponentLogs(bitId);
    });

    return function (_x) {
      return _ref.apply(this, arguments);
    };
  }());
}