hunk.code_window:     (user) => user.username !== props.currentUser?.username,
     );
     const { applicationSlug, pageSlug } = useSelector(selectURLSlugs);
     const isEditorInitialised = useSelector(getIsEditorInitialized);
     const isViewerInitialised = useSelector(getIsInitialized);
     const showModes =
       (isEditorInitialised || isViewerInitialised) && !shouldHideComments;
     return (
       <ThemeProvider theme={theme}>
         <HeaderWrapper className="pr-3" data-testid="t--appsmith-editor-header">
           <HeaderSection className="space-x-3">
  
hunk.labels: keep keep keep replace replace replace replace replace keep keep keep keep keep
hunk.after_edit:   const showModes = !shouldHideComments;
  
hunk.file_path: app/client/src/pages/Editor/EditorHeader.tsx
hunk.type: replace
file: import { createReducer } from "utils/AppsmithUtils";
  import {
    ReduxAction,
    ReduxActionTypes,
    ReduxActionErrorTypes,
  } from "@appsmith/constants/ReduxActionConstants";
  
  const initialState: AppViewReduxState = {
    isFetchingPage: false,
    initialized: false,
    headerHeight: 0,
  };
  
  const appViewReducer = createReducer(initialState, {
    [ReduxActionTypes.INITIALIZE_PAGE_VIEWER]: (state: AppViewReduxState) => {
      return { ...state, initialized: false };
    },
    [ReduxActionTypes.INITIALIZE_PAGE_VIEWER_SUCCESS]: (
      state: AppViewReduxState,
    ) => {
      return { ...state, initialized: true };
    },
    [ReduxActionTypes.FETCH_PUBLISHED_PAGE_INIT]: (state: AppViewReduxState) => {
      return { ...state, isFetchingPage: true };
    },
    [ReduxActionErrorTypes.FETCH_PUBLISHED_PAGE_ERROR]: (
      state: AppViewReduxState,
    ) => {
      return { ...state, isFetchingPage: false };
    },
    [ReduxActionTypes.FETCH_PUBLISHED_PAGE_SUCCESS]: (
      state: AppViewReduxState,
    ) => {
      return {
        ...state,
        isFetchingPage: false,
      };
    },
    [ReduxActionTypes.SET_APP_VIEWER_HEADER_HEIGHT]: (
      state: AppViewReduxState,
      action: ReduxAction<number>,
    ) => {
      return {
        ...state,
        headerHeight: action.payload,
      };
    },
  });
  
  export interface AppViewReduxState {
    initialized: boolean;
    isFetchingPage: boolean;
    headerHeight: number;
  }
  
  export default appViewReducer;
  