"use client"; import { useSupabase } from "@/app/supabase-provider"; import { cn } from "@/lib/utils"; import Link from "next/link"; import { Dispatch, FC, HTMLAttributes, ReactNode, SetStateAction } from "react"; import Button from "../ui/Button"; import DarkModeToggle from "./DarkModeToggle"; interface NavItemsProps extends HTMLAttributes { setOpen?: Dispatch>; } const NavItems: FC = ({ className, setOpen, ...props }) => { const { session } = useSupabase(); const isUserLoggedIn = session?.user !== undefined; const isLocal = process.env.NEXT_PUBLIC_ENV === "local"; return (
    {isLocal ? ( <> Upload Chat Explore ) : ( <> Github Discord )}
    {isUserLoggedIn && ( )} {!isLocal && ( )}
); }; interface NavLinkProps { children: ReactNode; to: string; setOpen?: Dispatch>; } const NavLink: FC = ({ children, to, setOpen }) => { return (
  • setOpen && setOpen(false)} href={to}> {children}
  • ); }; export default NavItems;