import type { AuthScope } from "../stores/auth";

export const resolveLoginPath = (scope?: AuthScope | null, tenantCode?: string | null): string => {
  if (scope === "TENANT") {
    const normalizedTenantCode = String(tenantCode || "").trim();
    if (normalizedTenantCode) {
      return `/${normalizedTenantCode}/login`;
    }
  }
  return "/login";
};
