'use strict';

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

var _index = require('../index');

var _StringUtils = require('../utils/StringUtils');

var customMap = {
  // '/Role/render': Role,
  // '/AccountList/render': AccountList
};

var customWrapper = function customWrapper(domainLink, query) {
  var finalDomainLink = domainLink[0] === '/' ? domainLink : '/' + domainLink;
  finalDomainLink = (0, _StringUtils.convertTemplate)(finalDomainLink);
  if (query && query.other) {
    finalDomainLink += '/' + query.other;
  }
  if (customMap[finalDomainLink]) {
    return customMap[finalDomainLink];
  }
  return BizConfig && BizConfig[finalDomainLink];
};

exports.default = customWrapper;