export const formatMoney = (str) => { str = Number(str).toFixed(2); return str.replace(/\B(?=(\d{3})+($|\.))/g, ','); };