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

Hub

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

{session.data?.user.firstname}

) : ( )}
); };