Add custom nodes manager UI (#2923)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Christian Byrne
2025-03-08 16:54:08 -07:00
committed by GitHub
parent f53c04834f
commit d8721760f1
42 changed files with 1792 additions and 19 deletions

View File

@@ -320,3 +320,11 @@ export const paramsToCacheKey = (params: unknown): string => {
*/
export const generateRandomSuffix = (): string =>
Math.random().toString(36).substring(2, 6)
/**
* Formats a number to a locale-specific string
* @param num The number to format
* @returns The formatted number or 'N/A' if the number is undefined
*/
export const formatNumber = (num?: number): string =>
num?.toLocaleString() ?? 'N/A'