const sellingProductFormat = (value) => { if (value > 1000) { const formattedValue = (value / 1000).toFixed(0).replace('.', ',') return formattedValue + 'rb+'; } else { return value.toString() } } const formatCurrency = (value) => { if (value >= 1000) { const thousands = Math.floor(value / 1000) // Menghitung ribuan return `Rp${thousands}k` } else { return `Rp${value}` } } export { sellingProductFormat, formatCurrency}