import { HOME_PATH, ADMIN_PATH } from './constants.js';

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

export { getHomeUrl };
//# sourceMappingURL=utils.js.map
