import '../l10n/app_localizations.dart';

/// 质押节点等级文案（对齐 Web `stakingNodeLevel.ts`）
String stakingNodeLevelLabel(AppLocalizations l10n, String? level) {
  final normalized = (level ?? 'NORMAL').trim().toUpperCase();
  switch (normalized) {
    case 'COMMUNITY':
      return l10n.financeNodeLevelCommunity;
    case 'CITY':
      return l10n.financeNodeLevelCity;
    case 'APAC':
      return l10n.financeNodeLevelApac;
    case 'GLOBAL':
      return l10n.financeNodeLevelGlobal;
    case 'NORMAL':
    default:
      return l10n.financeNodeLevelNormal;
  }
}
