titles/app/page.tsx

19 lines
568 B
TypeScript
Raw Normal View History

import { getUsers } from "@/drizzle/db";
import SignIn from "@/components/SignIn";
2024-05-16 21:23:10 +00:00
import { auth } from "@/auth";
import { Session } from "next-auth";
import { ThemeSwitcher } from "@/components/ThemeSwitcher";
2024-05-16 11:44:35 +00:00
export default async function Home() {
const users = await getUsers();
2024-05-16 21:23:10 +00:00
const session: Session | null = await auth();
2024-05-16 11:44:35 +00:00
return (
2024-05-17 09:31:09 +00:00
<main className="min-h-screen w-full">
<div className="min-h-screen w-full flex flex-col items-center justify-center">
<SignIn session={session} />
<ThemeSwitcher />
</div>
2024-05-16 11:44:35 +00:00
</main>
);
}