const env = import.meta.env;

export enum TENANT_ENUM {
  /**
   * 基线
   */
  BASE = 'base',
  /**
   * 利元亨
   */
  LYRIC = 'lyric',
  /**
   * 宜安科技
   */
  EONTEC = 'eontec',
}

/**
 * 当前租户
 */
export const CURRENT_TENANT = env.VITE_API_TENANT_NAME || TENANT_ENUM.BASE;

export const enableConfigByTenant = (tenants: string[]) => {
  return tenants.includes(CURRENT_TENANT);
};
