hunk.code_window: import { createModalAction } from "actions/widgetActions";
   import { TreeDropdownOption } from "components/ads/TreeDropdown";
   import TreeStructure from "components/utils/TreeStructure";
   import { OnboardingStep } from "constants/OnboardingConstants";
   import { ReduxActionTypes } from "constants/ReduxActionConstants";
   import { INTEGRATION_EDITOR_URL, INTEGRATION_TABS } from "constants/routes";
   import { PluginType } from "entities/Action";
   import { Datasource } from "entities/Datasource";
   import { keyBy } from "lodash";
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit: import {
     INTEGRATION_EDITOR_MODES,
     INTEGRATION_EDITOR_URL,
     INTEGRATION_TABS,
   } from "constants/routes";
  
hunk.file_path: app/client/src/components/editorComponents/ActionCreator/index.tsx
hunk.type: replace
file: import { endOnboarding, showWelcomeHelper } from "actions/onboardingActions";
  import { useDispatch } from "react-redux";
  import AnalyticsUtil from "utils/AnalyticsUtil";
  import { setOnboardingState, setOnboardingWelcomeState } from "utils/storage";
  
  export const useIntiateOnboarding = () => {
    const dispatch = useDispatch();
  
    return async () => {
      // Clear up everything
      dispatch(endOnboarding());
  
      await setOnboardingState(true);
      await setOnboardingWelcomeState(true);
      dispatch(showWelcomeHelper(true));
  
      AnalyticsUtil.logEvent("ONBOARDING_WELCOME");
    };
  };
  