You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
880 B
31 lines
880 B
import type { ClientConfig } from './types'
|
|
|
|
import { facr } from './facr'
|
|
import { instat } from './instat'
|
|
import { lff } from './lff'
|
|
import { insports } from './insports'
|
|
import { india } from './india'
|
|
import { tunisia } from './tunisia'
|
|
import { fqtv } from './fqtv'
|
|
|
|
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'
|
|
export const isIndiaClient = currentClient === 'india'
|
|
export const isTunisClient = currentClient === 'tunisia'
|
|
export const isFqtvClient = currentClient === 'fqtv'
|
|
|
|
const clients = {
|
|
facr,
|
|
fqtv,
|
|
india,
|
|
insports,
|
|
instat,
|
|
lff,
|
|
tunisia,
|
|
}
|
|
|
|
export const client: ClientConfig = clients[currentClient]
|
|
|