text: import scrapeIt from "scrape-it";
  import formatMoney from "../format/formatMoney";
  
  export default async () => {
    try {
      const apiFetch = await scrapeIt("http://www.bcv.org.ve/", {
        eur: "#euro",
        usd: "#dolar",
      });
      const {data} = apiFetch;
      if (data) {
        const {eur, usd} = data;
        return {
          eur: formatMoney(eur, 'BVC_EUR', 'Euro', 'Banco Central de Venezuela'),
          usd: formatMoney(usd, 'BCV_USD', 'Dólar', 'Banco Central de Venezuela')
        }
      }
      return null;
    } catch (e) {
      console.error(e);
      return null;
    }
  };
  