"use client"; import { signOut } from "next-auth/react"; import { useState } from "react"; export function LogoutButton() { const [loading, setLoading] = useState(false); const handleLogout = async () => { setLoading(true); await signOut({ callbackUrl: "/" }); }; return ( ); }