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

type ResponseSound = {
  asset: string,
  id: number,
  name: string,
}

export const getSound = async (id: number | string): Promise<ResponseSound> => {
  const config = {
    method: 'GET',
  }

  return callApi({
    config,
    url: `${API_ROOT}/v1/aws/highlights/music/${id}`,
  })
}
