export const parseJSON = (response: Response) => {
  if (response.status === 204) {
    return Promise.resolve()
  }
  return response.json()
}
