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