hunk.code_window: import _ from "lodash";
   import { LayoutOnLoadActionErrors } from "constants/AppsmithActionConstants/ActionConstants";
   import { Plugin } from "api/PluginApi";
   export enum PluginType {
     API = "API",
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit: import { AutoGeneratedHeader } from "pages/Editor/APIEditor/helpers";
  
hunk.file_path: app/client/src/entities/Action/index.ts
hunk.type: add
file: import { createReducer } from "utils/ReducerUtils";
  import {
    ReduxAction,
    ReduxActionTypes,
  } from "@appsmith/constants/ReduxActionConstants";
  
  const initialState: HelpReduxState = {
    url: "",
    modalOpen: false,
    defaultRefinement: "",
  };
  
  const helpReducer = createReducer(initialState, {
    [ReduxActionTypes.SET_DEFAULT_REFINEMENT]: (
      state: HelpReduxState,
      action: ReduxAction<string>,
    ) => {
      return { ...state, defaultRefinement: action.payload };
    },
    [ReduxActionTypes.SET_HELP_MODAL_OPEN]: (
      state: HelpReduxState,
      action: ReduxAction<boolean>,
    ) => {
      return { ...state, modalOpen: action.payload };
    },
  });
  
  export interface HelpReduxState {
    url: string;
    modalOpen: boolean;
    defaultRefinement: string;
  }
  
  export default helpReducer;
  