import { DataTierRole , PhaseWithAllocation } from '../../../../common/types' ; import { phaseToNodePreferenceMap } from '../../../../common/constants' ; export const isNodeRoleFirstPreference = ( phase , nodeRole ) => { return phaseToNodePreferenceMap [ phase ] [ 0 ] === nodeRole ; } ;