import { DATA_URL, PROCEDURES, SportTypes, } from 'config' import { callApi } from 'helpers' const proc = PROCEDURES.get_sport_list export type SportList = Array<{ id: SportTypes, lexic: number, name_eng: string, name_rus: string, }> export const getSportList = (): Promise => { const config = { body: { params: {}, proc, }, } return callApi({ config, url: DATA_URL, }) }