export function resolveCurrentUserGrade(currentUser = {}) {
  return String(
    currentUser.grade
    || currentUser.employeeGrade
    || currentUser.employee_grade
    || currentUser.profileGrade
    || ''
  ).trim()
}

export function resolveCurrentUserDepartment(currentUser = {}) {
  return String(
    currentUser.department
    || currentUser.departmentName
    || currentUser.department_name
    || ''
  ).trim()
}

export function resolveCurrentUserPosition(currentUser = {}) {
  return String(
    currentUser.position
    || currentUser.employeePosition
    || currentUser.employee_position
    || currentUser.jobTitle
    || currentUser.job_title
    || ''
  ).trim()
}

export function resolveCurrentUserManagerName(currentUser = {}) {
  return String(
    currentUser.managerName
    || currentUser.manager_name
    || currentUser.directManagerName
    || currentUser.direct_manager_name
    || currentUser.leaderName
    || currentUser.leader_name
    || ''
  ).trim()
}
