/** * Formats a numeric value as a currency string in Indonesian Rupiah (IDR) format. * * @param {number} value - The numeric value to be formatted as currency. * @returns {string} - The currency string in IDR format. */ const currencyFormat = (value) => { const currency = new Intl.NumberFormat('id-ID', { style: 'currency', currency: 'IDR', maximumFractionDigits: 0 }) return currency.format(value) } export default currencyFormat