"use client"; import { useSession } from "next-auth/react"; import Link from "next/link"; export const Header = () => { const session = useSession(); return (

Hub

{session.status === "authenticated" ? (

{session.data?.user.firstname}

) : ( )}
); };