Firist commit

This commit is contained in:
2024-03-29 12:52:08 +00:00
commit 5293669f40
27 changed files with 6143 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { auth } from "@/lib/auth";
import { LoginButton } from "./login_button";
import { LogoutButton } from "./logout_button";
/**
* This is a server component, then the buttons are client
*/
export default async function LogIn(): Promise<JSX.Element | undefined> {
const session = await auth();
if (session) {
return (
<LogoutButton/>
);
} else {
return (
<LoginButton/>
);
}
}