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

export const setDefaultCard = async (cardId: string) => {
  const config = {
    body: {
      card_id: cardId,
    },
  }

  return callApi({
    config,
    url: `${API_ROOT}/account/set-default-card`,
  })
}
