export const ROLE_LABELS = Object.freeze({
  SYSTEM_ADMIN: '系统管理员',
  HOSPITAL_ADMIN: '医院管理员',
  DIRECTOR: '科室主任',
  LEADER: '小组组长',
  DOCTOR: '医生',
  ENGINEER: '工程师',
});

export function getRoleLabel(role) {
  if (!role) {
    return '';
  }

  return ROLE_LABELS[role] || role;
}
