text: export default class CurrencyService {
    static async getCurrency(baseCurrency) {
      try {
        const response = await fetch(`https://v6.exchangerate-api.com/v6/${process.env.API_KEY}/latest/${baseCurrency}`);
        if (!response.ok) {
          throw Error(response.status);
        }
        return response.json();
      } catch (error) {
        return error;
      }
    }
  }