titles/app/page.tsx

13 lines
290 B
TypeScript
Raw Normal View History

import { getUsers } from "@/drizzle/db";
2024-05-16 11:44:35 +00:00
export default async function Home() {
const users = await getUsers();
console.log(users);
const name = users[0] ? users[0].name : "guest";
2024-05-16 11:44:35 +00:00
return (
<main className="bg-black text-white">
<h1>Hello {name}!</h1>
2024-05-16 11:44:35 +00:00
</main>
);
}