hunk.code_window:   const step2 = t("onboarding.step_2");
     const step3 = t("onboarding.step_3");
     const shouldStepBeDisplayed = useFeatureIsOn("onboarding");
     const { trackOnboardingEvent } = useOnboardingTracker();
     const { streamingText: titleStream, isDone: isTitleDisplayed } =
       useStreamText({
         text: title,
  
hunk.labels: keep keep keep replace replace keep keep keep keep keep
hunk.file_path: frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/Onboarding/Onboarding.tsx
hunk.type: replace
file: import { useContext } from "react";
  
  import { BrainContext } from "../brain-provider";
  import { BrainContextType } from "../types";
  
  export const useBrainContext = (): BrainContextType => {
    const context = useContext(BrainContext);
  
    if (context === undefined) {
      throw new Error("useBrainContext must be used inside BrainProvider");
    }
  
    return context;
  };
  