import type { ClientConfig } from './types'

import { facr } from './facr'
import { instat } from './instat'
import { lff } from './lff'
import { insports } from './insports'

export const currentClient = process.env.REACT_APP_CLIENT || 'insports'

export const isLffClient = currentClient === 'lff'
export const isInSportsClient = currentClient === 'insports'
export const isInstatClient = currentClient === 'instat'
export const isFacrClient = currentClient === 'facr'

const clients = {
  facr,
  insports,
  instat,
  lff,
}

export const client: ClientConfig = clients[currentClient]
