From b7fc3344e3f3c898388831dbfad084cebdd64bb3 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Mon, 5 Feb 2024 17:07:32 +0000
Subject: Init NextAuth

---
 components/auth/logout.tsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 components/auth/logout.tsx

(limited to 'components/auth/logout.tsx')

diff --git a/components/auth/logout.tsx b/components/auth/logout.tsx
new file mode 100644
index 00000000..87391c84
--- /dev/null
+++ b/components/auth/logout.tsx
@@ -0,0 +1,12 @@
+"use client";
+import { signOut } from "next-auth/react";
+
+export const LogoutButton = () => {
+  return (
+    <button className="btn btn-ghost normal-case" onClick={() => signOut({
+      callbackUrl: "/",
+    })}>
+      Sign Out
+    </button>
+  );
+};
-- 
cgit v1.2.3-70-g09d2

