text: import { state } from 'cerebral';
  
  export const caseDetailSubnavHelper = (get, applicationContext) => {
    const user = applicationContext.getCurrentUser();
    const isInternalUser = applicationContext
      .getUtilities()
      .isInternalUser(user.role);
    const userAssociatedWithCase = get(state.screenMetadata.isAssociated);
  
    return {
      showCaseInformationTab:
        isInternalUser || (!isInternalUser && userAssociatedWithCase),
      showCorrespondenceTab: isInternalUser,
      showDraftsTab: isInternalUser,
      showMessagesTab: isInternalUser,
      showNotesTab: isInternalUser,
      showTrackedItemsTab: isInternalUser,
    };
  };
  