titles/app/page.tsx

19 lines
515 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 (
<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>
);
}