2024-05-16 13:29:41 +00:00
|
|
|
import { getUsers } from "@/drizzle/db";
|
2024-05-16 19:58:14 +00:00
|
|
|
import SignIn from "@/components/SignIn";
|
2024-05-16 21:23:10 +00:00
|
|
|
import { auth } from "@/auth";
|
|
|
|
import { Session } from "next-auth";
|
2024-05-17 09:16:20 +00:00
|
|
|
import { ThemeSwitcher } from "@/components/ThemeSwitcher";
|
2024-05-16 11:44:35 +00:00
|
|
|
|
2024-05-16 13:29:41 +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:16:20 +00:00
|
|
|
<main>
|
|
|
|
<div className="w-full h-full flex flex-col items-center">
|
|
|
|
<SignIn session={session} />
|
|
|
|
<ThemeSwitcher />
|
|
|
|
</div>
|
2024-05-16 11:44:35 +00:00
|
|
|
</main>
|
|
|
|
);
|
|
|
|
}
|