import 'package:flutter/widgets.dart';

import 'package:pshared/generated/i18n/ps_localizations.dart';


/// Indicates whether you (internal) or the other party (external) manage payout data.
enum RecipientType { internal, external }

extension RecipientTypeExtension on RecipientType {
  /// Localized label – no opaque abbreviations.
  String label(BuildContext context) => this == RecipientType.internal
    ? PSLocalizations.of(context)!.typeInternal
    : PSLocalizations.of(context)!.typeExternal;
}
