export const formatChargeType = (type: string) => {
    switch (type) {
      case "percentage":
        return "Percentage"
      case "fixedAmount":
        return "Fixed Amount"
      case "perSqYard":
        return "Amount Per Sq.Yard"
      case "perSqFt":
        return "Amount Per Sq.Ft"
      default:
        return type.charAt(0).toUpperCase() + type.slice(1).replace(/_/g, " ")
    }
  }

export const formatChargeValue = (type: string, value: number) => {
    switch (type) {
      case "percentage":
        return `${value}%`
      case "fixedAmount":
        return `₹${value.toLocaleString('en-IN')}`
      case "perSqYard":
        return `₹${value} / sq.yd`
      case "perSqFt":
        return `₹${value} / sq.ft`
      default:
        return `${value}`
    }
  }