import type { TicketAuthorRole } from '@/services/tickets/types';

/** The i18n key (in the `tickets` namespace) for a message author's display label. `admin` reads as "support". */
export function authorLabelKey(role: TicketAuthorRole): string {
  switch (role) {
    case 'nurse':
      return 'author_nurse';
    case 'admin':
      return 'author_support';
    case 'customer':
      return 'author_customer';
    case 'system':
    default:
      return 'author_system';
  }
}
