update web to dashboard

This commit is contained in:
mlogclub
2026-04-15 17:20:57 +08:00
parent 3d98cf1e27
commit c07e588030
206 changed files with 0 additions and 0 deletions
-15
View File
@@ -1,15 +0,0 @@
export function getEnumLabel<T extends string | number>(
enumLabels: Record<T, string>,
value: T
): string {
return enumLabels[value] || String(value)
}
export function getEnumOptions<T extends string | number>(
enumLabels: Record<T, string>
): Array<{ value: T; label: string }> {
return Object.entries(enumLabels).map(([value, label]) => ({
value: value as T,
label: label as string,
}))
}