text: export default class CryptoService{
  static getCrypto(){
    return fetch(`https://api.nomics.com/v1/exchange-rates?key=${process.env.API_KEY}`)
    .then(function(response) {
      if (!response.ok){
        throw Error(response.statusText);
      }
      return response.json();
    })
    .catch(function(error) {
      return error;
    })
  }
  }
  