export const checkStatus = (response: Response) => {
  if (!response.ok) {
    return Promise.reject(response)
  }

  return Promise.resolve(response)
}
