text: export function formatMoney(amount, decimalCount = 2, decimal = ".", thousands = ",") {
      try {
          amount = amount / 100;
          decimalCount = Math.abs(decimalCount);
          decimalCount = isNaN(decimalCount) ? 2 : decimalCount;
  
          const negativeSign = amount < 0 ? "-" : "";
          const currency = "$";
  
          let i = parseInt(amount = Math.abs(Number(amount) || 0).toFixed(decimalCount)).toString();
          let j = (i.length > 3) ? i.length % 3 : 0;
  
          return negativeSign + currency + (j ? i.substr(0, j) + thousands : '') + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + thousands) + (decimalCount ? decimal + Math.abs(amount - i).toFixed(decimalCount).slice(2) : "");
      } catch (e) {
          console.log(e)
      }
  }