From 80bb8a108f29331cdb2f2695f6801beee104dc89 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Thu, 8 Feb 2024 15:14:23 +0000
Subject: [refactor] Move the different packages to the package subdir

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

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

diff --git a/packages/web/components/auth/logout.tsx b/packages/web/components/auth/logout.tsx
new file mode 100644
index 00000000..8d627f68
--- /dev/null
+++ b/packages/web/components/auth/logout.tsx
@@ -0,0 +1,17 @@
+"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

