import { API_ROOT, SportTypes } from 'config' import { callApi } from 'helpers' type Args = { matchId: number, sportType: SportTypes, } export const getLandingStatus = async ({ matchId, sportType, }: Args): Promise<{landing_id: number | null}> => { const config = { method: 'GET', } return callApi({ config, url: `${API_ROOT}/v1/landings/${sportType}/${matchId}/status`, }) }