import { DATA_URL, PROCEDURES, SportTypes, } from 'config' import { callApi, getSportLexic } from 'helpers' const proc = PROCEDURES.ott_match_popup_actions type Action = { id: number, lexic: number, } export type Actions = Array type Response = { data: Actions, } export const getSportActions = async (sportType: SportTypes) => { const config = { body: { params: {}, proc, }, } const response: Response = await callApi({ config, url: `${DATA_URL}/${getSportLexic(sportType)}`, }) return response.data }