{label}
- {payload.map((item) => { - const dataKey = item.dataKey?.toString(); - if (!dataKey || !item.payload) return null; - - const rawValue = getRawValue(item.payload, dataKey); - const isSpend = dataKey.includes("spend"); - const formattedValue = - rawValue !== undefined - ? isSpend - ? `$${rawValue.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` - : rawValue.toLocaleString() - : "N/A"; - - const colorName = item.color as keyof typeof colorNameToHex; - const hexColor = colorNameToHex[colorName] || item.color; - return ( -- {formatCategoryName(dataKey)} -
-- {formattedValue} -
-- {formatCategoryName(category)} -
-{label}
+ {payload.map((item) => { + const dataKey = item.dataKey?.toString(); + if (!dataKey || !item.payload) return null; + + const rawValue = getRawValue(item.payload, dataKey); + const isSpend = dataKey.includes("spend"); + const formattedValue = + rawValue !== undefined + ? isSpend + ? `$${rawValue.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` + : rawValue.toLocaleString() + : "N/A"; + + const colorName = item.color as keyof typeof colorNameToHex; + const hexColor = colorNameToHex[colorName] || item.color; + return ( ++ {formatCategoryName(dataKey)} +
++ {formattedValue} +
++ {formatCategoryName(category)} +
+- Please replace your old key with the new key generated. For - security reasons, you will not be able to view it again{" "} - through your LiteLLM account. If you lose this secret key, you - will need to generate a new one. + Please replace your old key with the new key generated. For security reasons,{" "} + you will not be able to view it again through your LiteLLM account. If you lose this secret key, + you will need to generate a new one.
- {selectedToken?.key_alias || "No alias set"}
-
+ {selectedToken?.key_alias || "No alias set"}
{regeneratedKey}
- Are you sure you want to delete this key? -
+Are you sure you want to delete this key?