"use client"; import { useState } from "react"; import { LogOut } from "lucide-react"; import { signOut } from "next-auth/react"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; interface SignOutModalProps { isOpen: boolean; onClose: () => void; } export function SignOutModal({ isOpen, onClose }: SignOutModalProps) { const [isLoading, setIsLoading] = useState(false); const handleSignOut = async () => { setIsLoading(true); await signOut({ callbackUrl: "/" }); }; return ( Sign Out Are you sure you want to sign out? Any unsaved work will be lost. ); }