import { API_ROOT } from 'config'
import { callApi } from 'helpers'

export const cancelSubscribe = (id: number): Promise<unknown> => {
  const config = {
    body: {
      id,
    },
  }

  return callApi({
    config,
    url: `${API_ROOT}/account/subscription/cancel`,
  })
}
