import Link from "next/link";
import { useTranslation } from "react-i18next";
import { AiFillStar } from "react-icons/ai";
import { LuChevronRight } from "react-icons/lu";
import { useHomepageTracking } from "@/app/(home)/hooks/useHomepageTracking";
import { cn } from "@/lib/utils";
import { linkStyle } from "../styles";
import { NavbarItem } from "../types";
type UseHomeHeaderProps = {
color: "white" | "black";
};
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export const useHomeHeader = ({ color }: UseHomeHeaderProps) => {
const { t } = useTranslation("home");
const { onLinkClick } = useHomepageTracking();
const navItems: NavbarItem[] = [
{
href: "https://theodo.co.uk",
label: `${t("sponsored_by")} Theodo`,
rightIcon: null,
newTab: true,
className: "underline",
},
{ href: "/blog", label: t("blog"), rightIcon: null, newTab: true },
{
href: "https://github.com/StanGirard/quivr",
label: t("star_us"),
leftIcon: