import { callApi } from 'helpers'
import { Subscriptions } from './getSubscriptions'
import { API_ROOT } from '../config'

export const getSelectedSubscriptions = async (
): Promise<Subscriptions> => {
  const config = {
    method: 'GET',
  }

  return callApi({
    config,
    url: `${API_ROOT}/v1/subscriptions${window.location.search}`,
  })
}
