import { formatNumber } from '../../lib/utils/format'; /** * The line under Plans & Billing. It names the credits spent, since a bare * "255 of 500" beside a half-full bar reads as much as the credits left. * * @param {number} used - Credits spent this month. * @param {number} granted - Credits the plan grants this month. * @returns {string} The meter's line. */ export const creditMeterLabel = (used: number, granted: number): string => `${formatNumber(used)} of ${formatNumber(granted)} credits used this month`;