Files
test/src/lib/components/Nav.tsx
2025-11-18 16:05:05 -05:00

18 lines
410 B
TypeScript

'use client'
import { useSession } from '~/auth/client'
import { SignOutButton } from '~/components/SignOut'
export function Nav() {
const { user } = useSession()
return (
<div className="flex flex-row items-center justify-between gap-4 p-4">
<a href="/">Home</a>
<div className="flex flex-row items-center gap-4">
<p>Signed in as {user.email}</p>
<SignOutButton />
</div>
</div>
)
}