From 083ea5bd19172381bb53e95aaf98eaabef839c54 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 6 Feb 2024 12:26:29 +0000 Subject: Move the web app into a subdir --- web/components/auth/login.tsx | 17 +++++++++++++++++ web/components/auth/logout.tsx | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 web/components/auth/login.tsx create mode 100644 web/components/auth/logout.tsx (limited to 'web/components') diff --git a/web/components/auth/login.tsx b/web/components/auth/login.tsx new file mode 100644 index 00000000..4cd55546 --- /dev/null +++ b/web/components/auth/login.tsx @@ -0,0 +1,17 @@ +"use client"; +import { signIn } from "next-auth/react"; + +export const LoginButton = () => { + return ( + + ); +}; 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 ( + + ); +}; -- cgit v1.2.3-70-g09d2