hunk.code_window: import { useLocation } from "react-router";
   import { setIsGitSyncModalOpen } from "actions/gitSyncActions";
   import RealtimeAppEditors from "./RealtimeAppEditors";
   import { EditorSaveIndicator } from "./EditorSaveIndicator";
   import getFeatureFlags from "utils/featureFlags";
   const HeaderWrapper = styled(StyledHeader)`
     width: 100%;
     padding-right: 0;
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit: import { getIsInOnboarding } from "selectors/onboardingSelectors";
  
hunk.file_path: app/client/src/pages/Editor/EditorHeader.tsx
hunk.type: add
file: import { AppState } from "reducers";
  import { createSelector } from "reselect";
  
  export const getIsOnboardingHelperVisible = (state: AppState) => {
    const urlSearchParams = new URL(window.location.href).searchParams;
    const isCommentModeInUrl = urlSearchParams.get("isCommentMode");
    return state.ui.onBoarding.showHelper && !isCommentModeInUrl;
  };
  
  export const showWelcomeScreen = (state: AppState) =>
    state.ui.onBoarding.showOnboardingLoader;
  export const getEnableFirstTimeUserOnboarding = (state: AppState) => {
    return state.ui.onBoarding.enableFirstTimeUserOnboarding;
  };
  
  export const getFirstTimeUserOnboardingApplicationId = (state: AppState) => {
    return state.ui.onBoarding.firstTimeUserOnboardingApplicationId;
  };
  
  export const getFirstTimeUserOnboardingComplete = (state: AppState) => {
    return state.ui.onBoarding.firstTimeUserOnboardingComplete;
  };
  
  export const getFirstTimeUserOnboardingModal = (state: AppState) =>
    state.ui.onBoarding.showFirstTimeUserOnboardingModal;
  
  export const getIsFirstTimeUserOnboardingEnabled = createSelector(
    (state: AppState) => state.entities.pageList.applicationId,
    getEnableFirstTimeUserOnboarding,
    getFirstTimeUserOnboardingApplicationId,
    (currentApplicationId, enabled, applicationId) => {
      return enabled && currentApplicationId === applicationId;
    },
  );
  