/// Predefined distraction types
class DistractionType {
  static const phoneNotification = 'phone_notification';
  static const socialMedia = 'social_media';
  static const thoughts = 'thoughts';
  static const other = 'other';

  /// Get display name for a distraction type (returns key for localization)
  static String getDisplayName(String type) {
    // Returns the localization key - actual translation done in UI
    switch (type) {
      case phoneNotification:
        return 'Phone / Notification';
      case socialMedia:
        return 'Social Media';
      case thoughts:
        return 'Thoughts / Daydream';
      case other:
        return 'Other';
      default:
        return 'Unknown';
    }
  }

  /// Get emoji for a distraction type
  static String getEmoji(String type) {
    switch (type) {
      case phoneNotification:
        return '📱';
      case socialMedia:
        return '💬';
      case thoughts:
        return '💭';
      case other:
        return '🌟';
      default:
        return '❓';
    }
  }

  /// Get all distraction types
  static List<String> get all => [
        phoneNotification,
        socialMedia,
        thoughts,
        other,
      ];
}
