'use client' import { createAuthClient } from 'better-auth/react' import { useRouter } from 'next/navigation' const authClient = createAuthClient() export function Header() { const router = useRouter() async function handleSignOut() { await authClient.signOut() router.push('/login') } return (
) }