RippleWorkers / src /components /dashboard /LogoutButton.tsx
damndeepesh
Initialize project with LavinMQ integration and Docker support
c7fbc2e
Raw History Blame Contribute Delete
643 Bytes
"use client";
import { signOut } from "next-auth/react";
import { LogOut } from "lucide-react";
export default function LogoutButton() {
return (
<button
onClick={() => signOut({ callbackUrl: "/" })}
className="flex items-center gap-3 px-2 py-2 w-full text-left text-gray-500 hover:text-red-600 hover:bg-red-50 dark:hover:bg-red-900/10 rounded-md transition-colors text-sm"
title="Logout"
>
<div className="w-6 flex justify-center">
<LogOut size={16} />
</div>
<span className="font-medium">Log Out</span>
</button>
);
}