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 {
    FeedItemCrawlType,
    FeedItemUploadType,
  } from "@/app/chat/[chatId]/components/ActionsBar/types";
  import { useKnowledgeToFeedContext } from "@/lib/context/KnowledgeToFeedProvider/hooks/useKnowledgeToFeedContext";
  
  type UseKnowledgeToFeed = {
    files: File[];
    urls: string[];
  };
  export const useKnowledgeToFeed = (): UseKnowledgeToFeed => {
    const { knowledgeToFeed } = useKnowledgeToFeedContext();
  
    const files: File[] = (
      knowledgeToFeed.filter((c) => c.source === "upload") as FeedItemUploadType[]
    ).map((c) => c.file);
  
    const urls: string[] = (
      knowledgeToFeed.filter((c) => c.source === "crawl") as FeedItemCrawlType[]
    ).map((c) => c.url);
  
    return {
      files,
      urls,
    };
  };
  