Spaces:
Runtime error
Runtime error
Download src/components/dashboard/LogoutButton.tsx from damndeepesh-dev/RippleWorkers: direct link, hf CLI and curl.
- Browser
- Download file 643 Bytes
-
https://huggingface.co/spaces/damndeepesh-dev/RippleWorkers/resolve/main/src/components/dashboard/LogoutButton.tsx
- Command line
-
hf download hf://spaces/damndeepesh-dev/RippleWorkers/src/components/dashboard/LogoutButton.tsx
-
curl -L -o LogoutButton.tsx https://huggingface.co/spaces/damndeepesh-dev/RippleWorkers/resolve/main/src/components/dashboard/LogoutButton.tsx
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> | |
| ); | |
| } | |