'use strict';

var v2_reactUtils_PrivateRoute_constants = require('./constants.js');

var getHomeUrl = function getHomeUrl(path) {
  if (!path) return v2_reactUtils_PrivateRoute_constants.HOME_PATH;
  if (Array.isArray(path)) {
    return path.some(function (p) {
      return p === null || p === void 0 ? void 0 : p.includes(v2_reactUtils_PrivateRoute_constants.ADMIN_PATH);
    }) ? v2_reactUtils_PrivateRoute_constants.ADMIN_PATH : v2_reactUtils_PrivateRoute_constants.HOME_PATH;
  }
  return path.includes(v2_reactUtils_PrivateRoute_constants.ADMIN_PATH) ? v2_reactUtils_PrivateRoute_constants.ADMIN_PATH : v2_reactUtils_PrivateRoute_constants.HOME_PATH;
};

exports.getHomeUrl = getHomeUrl;
//# sourceMappingURL=utils.js.map
