'use client'; import { useState } from 'react'; import { useRouter } from 'next/navigation'; import { useAuthActions } from '@convex-dev/auth/react'; import { LogOut } from 'lucide-react'; import { Button, CardContent, CardDescription, CardHeader, CardTitle, } from '@gib/ui'; export const SignOutForm = () => { const { signOut } = useAuthActions(); const router = useRouter(); const [isSigningOut, setIsSigningOut] = useState(false); const handleSignOut = async () => { setIsSigningOut(true); try { await signOut(); router.push('/'); } catch (error) { console.error('Sign out error:', error); setIsSigningOut(false); } }; return ( <> Sign Out End your current session and return to the home page ); };