hunk.code_window: import Link from "next/link";
   import { Fragment } from "react";
   import { useTranslation } from "react-i18next";
   import { RiDownloadLine } from "react-icons/ri";
   import Button from "@/lib/components/ui/Button";
  
hunk.labels: keep replace keep keep keep keep
hunk.file_path: frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/Onboarding/Onboarding.tsx
hunk.type: replace
file: import ReactGA from "react-ga4";
  
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
  export const useGAnalyticsEventTracker = ({
    category,
  }: {
    category: string;
  }) => {
    const ga_id = process.env.NEXT_PUBLIC_GA_ID;
  
    if (ga_id === undefined) {
      return { eventTracker: undefined };
    }
  
    ReactGA.initialize(ga_id);
  
    const eventTracker = ({
      action,
      label,
    }: {
      action: string;
      label?: string;
    }) => {
      ReactGA.event(action, {
        category,
        label,
      });
    };
  
    return { eventTracker };
  };
  