From 083ea5bd19172381bb53e95aaf98eaabef839c54 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Tue, 6 Feb 2024 12:26:29 +0000
Subject: Move the web app into a subdir

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

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

diff --git a/web/components/auth/logout.tsx b/web/components/auth/logout.tsx
new file mode 100644
index 00000000..87391c84
--- /dev/null
+++ b/web/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

