hunk.code_window:       } catch (err) {
           // Handle error due to google recaptcha key of different domain
           props.handleError(event, createMessage(GOOGLE_RECAPTCHA_DOMAIN_ERROR));
         }
  
hunk.labels: add keep keep keep
hunk.after_edit:         handleRecaptchaLoading(false);
  
hunk.file_path: app/client/src/components/designSystems/blueprint/ButtonComponent.tsx
hunk.type: add
file: import { createReducer } from "utils/AppsmithUtils";
  import {
    ReduxAction,
    ReduxActionTypes,
    ReduxActionErrorTypes,
  } from "constants/ReduxActionConstants";
  
  const initialState: ImportReduxState = {
    isImportingCurl: false,
    errorPayload: {},
  };
  
  const importReducer = createReducer(initialState, {
    [ReduxActionTypes.SUBMIT_CURL_FORM_INIT]: (state: ImportReduxState) => {
      return {
        ...state,
        isImportingCurl: true,
      };
    },
    [ReduxActionTypes.SUBMIT_CURL_FORM_SUCCESS]: (state: ImportReduxState) => ({
      ...state,
      isImportingCurl: false,
    }),
    [ReduxActionErrorTypes.SUBMIT_CURL_FORM_ERROR]: (
      state: ImportReduxState,
      action: ReduxAction<{ errorPayload: string }>,
    ) => {
      return { ...state, errorPayload: action.payload, isImportingCurl: false };
    },
  });
  
  export interface ImportReduxState {
    isImportingCurl: boolean;
    errorPayload: Record<string, unknown>;
  }
  
  export default importReducer;
  