"use client"; import { signOut } from "@/utils/signOut"; import { Button } from "./ui/button"; import { ExitIcon } from "@radix-ui/react-icons"; import { useState } from "react"; import { Loader2 } from "lucide-react"; const SignOutButton = () => { const [isLoading, setIsLoading] = useState(false); async function handleSignOut() { try { setIsLoading(true); await signOut(); setIsLoading(false); } catch (error) {} } return ( <> ); }; export default SignOutButton;